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

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -