It seems to me you need "filtering collections": 
http://docs.doctrine-project.org/en/latest/reference/working-with-associations.html#filtering-collections

But I don't think it's supported on many-to-many relations yet.

-- 
Ramon

On 06 Feb 2014, at 20:03, zarloc <[email protected]> wrote:

> OR operator find the products that contain subcategory 1 + product hat 
> contain subcategory 3
> 
> but i have find the products that contain 1 and 3
> 
> product
>    |
>    ---------- subcategory -> red
>    |
>    ---------- subcategory -> circle
> 
> if i use OR operator I find  also product-> red  AND product -> circle but i 
> exclude this from results
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "doctrine-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/doctrine-user.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to