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

mosaiq_marcel mosaiq_marcel at web.de
Fri May 4 09:22:05 CEST 2012


Hi Karsten,

thanks for your advice, if i had read the documentation correctly, then 
i would have noticed to extend from "..\Persistende\Doctrine\Repository" 
- that's my fault :-(

The first solution I have not yet been tested because in my case DQL was 
the easier way:-)

Regards,
Marcel

Am 30.04.2012 14:41, schrieb Karsten Dambekalns:
> 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


More information about the FLOW3-general mailing list