public function appendModelClauseSeveralToPs(&$sb, array &$params)
    {
        $clause = $this->clause;
        foreach ((array) $this->value as $value) {
            if ($value === null) {
                // FIXME we eventually need to translate a BETWEEN to
                // something like WHERE (col < :p1 OR :p1 IS NULL) AND (col < :p2 OR :p2 IS NULL)
                // in order to support null values
                throw new PropelException('Null values are not supported inside BETWEEN clauses');
            }
            $params[] = array('table' => $this->realtable, 'column' => $this->column, 'value' => $value);
            $clause = self::strReplaceOnce('?', ':p' . count($params), $clause);
        }
        $sb .= $clause;
    }
public function appendModelClauseSeveralToPs(&$sb, array &$params)
    {
        $clause = $this->clause;
        foreach ((array) $this->value as $value) {
            if ($value === null) {
                // FIXME we eventually need to translate a BETWEEN to
                // something like WHERE (col < :p1 OR :p1 IS NULL) AND (col < :p2 OR :p2 IS NULL)
                // in order to support null values
                throw new PropelException('Null values are not supported inside BETWEEN clauses');
            }
            $params[] = array('table' => $this->realtable, 'column' => $this->column, 'value' => $value);
            $clause = self::strReplaceOnce('?', ':p' . count($params), $clause);
        }
        $sb .= $clause;
    }
public function appendModelClauseSeveralToPs ( & $ sb , array & $ params ) { $ clause = $ this -> clause ; foreach ( ( array ) $ this -> value as $ value ) { if ( $ value === null ) { // FIXME we eventually need to translate a BETWEEN to // something like WHERE (col < :p1 OR :p1 IS NULL) AND (col < :p2 OR :p2 IS NULL) // in order to support null values throw new PropelException ( 'Null values are not supported inside BETWEEN clauses' ) ; } $ params [ ] = array ( 'table' => $ this -> realtable , 'column' => $ this -> column , 'value' => $ value ) ; $ clause = self :: strReplaceOnce ( '?' , ':p' . count ( $ params ) , $ clause ) ; } $ sb .= $ clause ; }
Appends a Prepared Statement representation of the ModelCriterion onto the buffer
For ternary model clauses, e.G 'book.ID BETWEEN ? AND ?'

@param string &$sb    The string that will receive the Prepared Statement
@param array  $params A list to which Prepared Statement parameters will be appended

@throws PropelException
Appends a Prepared Statement representation of the ModelCriterion onto the buffer For ternary model clauses e . G book . ID BETWEEN ? AND ?