Cakephp seems to be adding the property "_locale" on "contain" associations, its ok if this property sits inside the Entity object, but not in the array that holds the associations as it will break a lot of stuff, this only happens when the language is not the default and the Model has the translate behavior, any ideas on how to fix / remove it?
[product_variations] => Array(
[0] => App\Model\Entity\ProductsVariation Object(
[id] => 15
[product_id] => 12
[name] => Adults
[description] => <p>Adult Ticket</p>
[price_mode] => final
[price] => 15
[stock] => -1
[weight] => 0
[sku] => OITGXNRMARTPPDV
[data] =>
[active] => 1
[enquire] =>
[position] => 1
[products_prices] => Array
(
)
[_locale] => pt
[[new]] =>
[[accessible]] => Array
(
[*] => 1
)
[[dirty]] => Array
(
)
[[original]] => Array
(
)
[[virtual]] => Array
(
)
[[errors]] => Array
(
)
[[invalid]] => Array
(
)
[[repository]] => ProductVariations
),
[_locale] => pt
)
Update: Seems to be due to the use of the "matching" method "Model->find(...)->matching('ProductVariations')...