How do I add an additional column to my selected query when I execute TableA :: doSelect ($ c) Can I even find some columns of tablebase? It does not appear that addSelectColumn 1.0 is available in Symphony, as long as I'm missing something.
$ c = new criteria (); $ C & gt; SetDistinct (); // to Tableb :: START_DATE to $ c- & gt; Need to add to add (Table A :: id, tabby b :: id); ... $ c- & gt; Adequanding orderbikolam (TableBy :: START_DATE); $ Result = table: :: Choose ($ c);
You use addSelectColumn () with Symfony 1.0 , But in such cases, avoid adding doSelect () . This method is executing an object and it is expected that all its fields are described in the schema file in the same sequence. If you try to leave a field or add one to another table, the result set will not be ignored. P>
Or go with the easiest way and use a ready condition () : $ con = propel :: getConnection (); $ Sql = "Select" Table 1`.Field 1, `Table2`.Add field2 to` Table1` to 'Table 2' on ... Turn on ... "$ st = $ con- & ;; Set the status ($ sql); $ $ = $ st- & gt; Execute (); while ($ rs-> Next ()) {...}
No comments:
Post a Comment