Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 protected function addParameter(O\Expression $expression)
 {
     $this->sql .= $this->query->addExpressionParameter($expression, $this->function);
 }
Ejemplo n.º 3
0
 public function __construct(\PDO $connection, TableSourceInfo $table, ParameterCollection $parameters)
 {
     parent::__construct($connection, $table, $parameters);
 }