Hi,
Using this example.
User hasOne Address
Address belongsTo Countries
- If I do a search as below, users which has no address will not be shown.
$this->Users->find()->contain([ 'Address.Countries' ]);
- But if I do a search without ‘Countries’, all Users will be shown.
$this->Users->find()->contain([ 'Address' ]);
I was expecting when I do the search #1, all users will be shown regardless of whether there is an Address. Am I missing something ?