Does it matter? Just use user2 where you need and ignore the fact that user1
is there as well?

On Mon, Nov 23, 2009 at 1:24 PM, tirengarfio <[email protected]> wrote:

> Any idea?
>
> On 20 nov, 13:57, tirengarfio <[email protected]> wrote:
> > Hi,
> >
> > i have a table to with two fields: user1 and user2.
> >
> > I have also this code to fetch the user2 column:
> >
> > // Extraemos los amigos del usuario de la sesion.
> >     $this->friend_list = Doctrine::getTable('FriendReference')
> >       ->createQuery('a')
> >       ->select('a.user2')
> >       ->where("a.user1 LIKE ?", '1')
> >       ->execute();
> >
> > My problem: that code not only fecths the user2 column but also the
> > user1 column..
> >
> > What am i doing wrong??
> >
> > Bye
> >
> > Javi
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "symfony users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<symfony-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=.
>
>
>


-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.


Reply via email to