Maybe this help!
loadModel('Parent');
$this->Parent->find();
or
$this->Chirent->Parent->find();
On Fri, Nov 7, 2014 at 1:05 PM, Kento Furui wrote:
> I have a model setup like following;
>
> Parent hasMany Children
>
> What do I do when I want to find a Parent who *doesn't have any Children*?
Using = with float is usually a very bad idea.
You can look into https://github.com/dereuromark/cakephp-geo and how it
does the custom finder for this.
mark
Am Sonntag, 9. November 2014 16:39:42 UTC+1 schrieb Radharadhya Dasa:
>
> Hi,
>
> Today I pop into something really strange.
>
> $this->
Hi,
Today I pop into something really strange.
$this->Contacts->find()
->select(['id', 'name'])
->where([
'lat' => $sameLatLng['lat'],
'lng' => $sameLatLng['lng']
]);
IT creates the following query: SELECT Contacts.