예제 #1
0
 public function __construct()
 {
     $eName = 'content_group_element';
     $this->db = \Services\DbService::instance()->getDb();
     $this->mapper = new \DB\SQL\Mapper($this->db, $eName);
     $this->fields = array_fill_keys($this->mapper->fields(false), 1);
 }
 public function __construct()
 {
     $eName = $this->getModelName();
     $tName = $this->getModelName() . '_translation';
     $this->db = \Services\DbService::instance()->getDb();
     $this->mapper = new \DB\SQL\Mapper($this->db, $eName);
     $this->fields = array_fill_keys($this->mapper->fields(false), 1);
     $this->translationMapper = new \DB\SQL\Mapper($this->db, $tName);
     $this->translationFields = array_fill_keys($this->translationMapper->fields(), 1);
 }