Esempio n. 1
0
File: Id.php Progetto: t4web/base
 public function build(QueryBuilderInterface $queryBuilder)
 {
     if ($this->isForeign) {
         $queryBuilder->join($this->joinTable, $this->joinRule);
     } else {
         $queryBuilder->from($this->table);
     }
     $queryBuilder->addFilterEqual("{$this->table}.id", $this->id);
 }
Esempio n. 2
0
 public function build(QueryBuilderInterface $queryBuilder)
 {
     if ($this->isForeign) {
         $queryBuilder->join($this->joinTable, $this->joinRule);
     } else {
         $queryBuilder->from($this->table);
     }
     $this->callBuildMethod($queryBuilder);
 }
Esempio n. 3
0
 public function build(QueryBuilderInterface $queryBuilder)
 {
     if (!$this->isForeign) {
         $queryBuilder->from($this->table);
     }
 }