[FLOW3-general] Question how-to select entities (owning side) that have an Many-To-Many Association, filtered by some entities of the inverse side

Karsten Dambekalns karsten at typo3.org
Mon Apr 30 14:41:42 CEST 2012


Hi.

On 26.04.12 18:42, mosaiq_marcel wrote:
> The given $filterIdentity is an array of identity numbers like
> array(
>     '1a791d01-12b6-4dfe-bdfe-cb9d439168c1',    // Filter 01
>     'd0dfddc3-909e-4aed-89fa-a33f3db3e08f'      // Filter 02
> )
> 
> My basic question now is, how to find all facilities which has a set of
> specified filters assosiated

The first way should work, but since you need to hand in objects to
compare against, you need to pass an array with filter instances instead
of strings.

> and how can i get access to the
> entityManager to use plain doctrine (queryBuilder or DQL)?

Extend …\Persistence\Doctrine\Repository instead of …\Persistence\Repository


Regards,
Karsten
-- 
Karsten Dambekalns
TYPO3 Core Developer, FLOW3 / Phoenix Team

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the FLOW3-general mailing list