php - Zend Db Select ? Substitution in join* condition -


It does not appear that there is no parameter replacement in the Zend_Db_Select section.

It is very upset that I can not do just that:

  $ select-> gt; JoinLeft ('st_line_item', 'st_line_item.order_id = st_order_id and st_line_item condition =?')  

What is idiomatic options that works within the fluent interface? I can do something to prepare the segment to join the outer side, but that is not the case.

This should work:

  $ select-> Join ('st_line_item.order_id = st_order.id and st_line_item.status =?', $ Ultimate))  
in the ' P> Actually, any time you want to avoid a variable where Zend_Db_ * does not automatically do the method, then you can use Zend_Db :: quoteInto () to work only. / P>

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -