Example #1
0
 public function __construct(PDO $connection, TableSourceInfo $table, ParameterCollection $parameters)
 {
     parent::__construct($parameters);
     $this->table = $table;
     $this->tableName = $table->getName();
     $this->connection = $connection;
     $this->expressionCompiler = new ExpressionCompiler($this);
 }
 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);
 }