Hello,
I have this relation:
'image'=>array(self::HAS_ONE, 'Image', array('content_id' => 'id_place'), 'condition'=>"image.content_type='place' AND image.cover=1"),
That works but when I do a find with(‘image’) it will only show me results that DO have the image relations, the ones missing it will not appear because of the condition.
So I tried to change it to ON instead of condition, like this:
'image'=>array(self::HAS_ONE, 'Image', array('content_id' => 'id_place'), 'on'=>"image.content_type='place' AND image.cover=1"),
But with this configuration it just gives me a blank page with no errors.
Am I doing it right?