/** * {@inheritdoc} * * @param string $alias Strategy's alias. * @param \Cake\ORM\Table $table Table object. */ public function __construct($alias, Table $table) { parent::__construct($alias, $table); $this->_defaultConfig['prefix'] = strtoupper($alias); $this->_defaultConfig['lowercase'] = false; }
/** * {@inheritdoc} * * @param string $alias Strategy's alias. * @param \Cake\ORM\Table $table Table object. */ public function __construct($alias, Table $table) { parent::__construct($alias, $table); $this->modelClass = 'CakeDC/Enum.Lookups'; $this->modelFactory('Table', ['Cake\\ORM\\TableRegistry', 'get']); }