Beispiel #1
0
 /**
  * Overrides parent constructor
  * @param string $tableName The table name
  * @throws \Doctrine\DBAL\DBALException
  */
 public function __construct($tableName = 'post')
 {
     parent::__construct($tableName);
     $this->_build();
 }
Beispiel #2
0
 /**
  * Constructor
  *
  * @param array $args
  */
 public function __construct(array $args)
 {
     /** @var BaseTable $baseTable */
     $baseTable = $args['table'];
     parent::__construct($baseTable->getName(), $baseTable->getColumns(), $baseTable->getIndexes(), $baseTable->getForeignKeys(), false, $baseTable->getOptions());
 }