symfony1 - Left join not work in symfony using doctrine -


I am using Symphony 1.4 with theory. I want to create a query with the left join:

  SELECT * Table 1 to right on table 2 table 1.id = table2.table1_id ...   < P> I did this like:  
  Doctrine_Query :: create () - & gt; Select ('*') - & gt; From ('Table 1T') - & gt; Bayangon ('Table 2T2'). Between Table 1 and Table 2, my schema.IML is in relationship. Table 2: Class: Table 2 Local: Id Exotic: Deliver on Table 1_d: Cascade Type: A Foreign Type: An Alien Alius: Table 1 Table 2   

In the end, Receives:

  SELECT * to Table 1, Table 2 ...   

Adding any left is not a section Do anyone know why?

About this, you should give the table of the associated leftJoin ). :

  $ q = Doctrine_Query :: create () - & gt; Select ('*') - & gt; From ('Table1t') - & gt; LeftJoin ('t.Table2 t2')    

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -