I have three tables *Countries, Cities* and *Addresses*. Their relationship
is Countries hasMany Cities, Cities hasMany Addresses. So Its something
like this Countries-Cities-Addresses.
If I want to get all addresses in a certain city I can do it like this
$this-paginate = [
What you want is matching(),
http://book.cakephp.org/3.0/en/orm/query-builder.html#filtering-by-associated-data
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups