コード例 #1
0
ファイル: Select.php プロジェクト: harp-orm/harp
 public function __construct(Repo $repo)
 {
     $this->repo = $repo;
     $table = $this->getDb()->escapeName($repo->getTable());
     $this->from($repo->getTable())->column(new SQL("{$table}.*"));
     parent::__construct($repo->getDbInstance());
 }
コード例 #2
0
ファイル: Update.php プロジェクト: harp-orm/harp
 public function __construct(Repo $repo)
 {
     $this->repo = $repo;
     $this->table($repo->getTable());
     parent::__construct($repo->getDbInstance());
 }