The signature is:

    public function findOneBy(array $criteria, array $orderBy = null);

So you'll need to pass _one_ array containing criteria as _first_ parameter, 
and _not_ pass anything to the _second_ parameter:

    $repo->findOneBy(
        array(
            'the_banned_member_id' => $this->getUserEntity(),
            'the_banners_id'       => $this->getRecipient()
        )
    );

The message you provide suggest you're passing criteria as _second_ argument.

-- 
Jasper N. Brouwer
(@jaspernbrouwer)


On 20 Mar 2014, at 14:30, paul kendal <[email protected]> wrote:

> Hi Jasper 
> 
> Thank you for your prompt reply; the error message that i am receiving is: 
> 
> Invalid order by orientation specified for 
> Messages\Entity\TableBannedMembersList#the_banners_id
> 
> its appears that my query is thinking that the second array is an order by?
> 
> warm regards 
> 
> Paul

-- 
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/d/optout.

Reply via email to