Propel ORM including MAX in criteria -
I am writing a question using the operative ORM
of the query form:
Select from some predefined * * where some_table.created_at = (some_table to select MAX (some_table.created_at));I found this too far:
$ c = new criteria (); $ C & gt; (.. 'Max (' auto :: created_at ')') AddSelectColumn;
Does anybody know what to do to avoid writing the Writer SQL? "Text">
Try:
$ c = new criteria (); $ C- & gt; Addition (SomeTable :: CREATED_AT, '(some selectable by MAX_table'. CREATED_AT. ')', Criteria :: custom);
Comments
Post a Comment