In Doctrine, you always join and reference fields via defined aliases. You probably have something like:
SELECT f FROM Foo f JOIN f.bar b ON Foo.a = b.a Should be following instead: SELECT f FROM Foo f JOIN f.bar b ON f.a = b.a Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 3 December 2014 at 16:28, saurabh shah <[email protected]> wrote: > > Hi, > I am unable to use join in doctrine with codeigniter and getting error, > Error: Identification Variable Stock_Multiple_Product_Model used in > join path expression but was not defined before. > > i have implemented by referring following link > > http://stackoverflow.com/questions/15087933/how-to-do-left-join-in-doctrine > > -- > 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.
