spotorm / spot2

Spot v2.x DataMapper built on top of Doctrine's Database Abstraction Layer
http://phpdatamapper.com
BSD 3-Clause "New" or "Revised" License
601 stars 101 forks source link

Prefilter with relation #191

Open Biromain opened 8 years ago

Biromain commented 8 years ago

Sorry, i have look lot of issues but not found any way. FYI: Scopes are in Mapper. I search to filter result with relation state without get all parents and loop on it. Like : $mapper->get(x)->childrens->published()->location->geoValid() or $mapper->get(x)->childrens->published()->geoValid() but geoValid filter on relation.

I have tried with relationName.field in parent scope but generate table.relationName.field.

Regards,