public function __construct($connection, $table) { parent::__construct($connection); $this->repository($table); if ($this->_repository) { $this->addDefaultTypes($this->_repository); } }