示例#1
0
 public function __construct(Connection $connection, $table, array $options = array())
 {
     $options['return'] = Database::RETURN_AFFECTED;
     parent::__construct($connection, $options);
     $this->table = $table;
     $this->conditionTable = $table;
     $this->condition = new Condition('AND');
 }
示例#2
0
 public function __construct($connection, $table, array $options = array())
 {
     if (!isset($options['return'])) {
         $options['return'] = Database::RETURN_INSERT_ID;
     }
     parent::__construct($connection, $options);
     $this->table = $table;
 }