Try: SELECT IDENTITY(foo.bar) FROM Foo foo
(Considering Foo.bar as an association) Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 7 September 2015 at 00:43, hajer khdiri <[email protected]> wrote: > how can i select foreign key from table without joins?? > > -- > 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. > -- 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.
