public function __construct(\PDO $connection, TableSourceInfo $table, ParameterCollection $parameters) { if (!$table->hasPrimaryKeys()) { throw new PinqDemoSqlException("Table {$table->getName()} must have primary keys to perform an UPDATE or DELETE query"); } parent::__construct($connection, $table, $parameters); $this->innerSelect = new Select($connection, $table, $parameters); }
protected function addParameter(O\Expression $expression) { $this->sql .= $this->query->addExpressionParameter($expression, $this->function); }
public function __construct(\PDO $connection, TableSourceInfo $table, ParameterCollection $parameters) { parent::__construct($connection, $table, $parameters); }