/** * Initialize a table instance. Called after the constructor. * * @param array $config * @return void */ public function initialize(array $config) { parent::initialize($config); $this->table('pages'); $this->primaryKey('id'); $this->entityClass(''); }
/** * Initialize a table instance. Called after the constructor. * * @param array $config * @return void */ public function initialize(array $config) { parent::initialize($config); $this->table('pages'); $this->primaryKey('id'); $this->behaviors()->load('Union/Core.Process', ['actions' => ['custom_delete' => 'bulkCustomDelete', 'disabled' => false]]); }
/** * Initialize a table instance. Called after the constructor. * * @param array $config * @return void */ public function initialize(array $config) { parent::initialize($config); $this->table('pages'); $this->primaryKey('id'); $this->entityClass('TestApp\\Model\\Entity\\CustomEntity'); }
/** * Initialize a table instance. Called after the constructor. * * @param array $config * @return void */ public function initialize(array $config) { parent::initialize($config); $this->table('params'); $this->primaryKey('id'); $this->displayField('title'); $this->behaviors()->load('Union/Core.Cached', ['config' => 'test_cached', 'groups' => ['cached']]); }
/** * Initialize a table instance. Called after the constructor. * * @param array $config * @return void */ public function initialize(array $config) { parent::initialize($config); $this->table('users'); $this->primaryKey('id'); $this->displayField('id'); $this->addBehavior('Timestamp'); $this->addBehavior('Search.Search'); $this->addBehavior('Acl.Acl', ['type' => 'requester']); $this->addAssociations(['belongsTo' => ['Roles' => ['foreignKey' => 'role_id', 'className' => 'Union/Community.Roles']]]); }
/** * Initialize a table instance. Called after the constructor. * * @param array $config * @return void */ public function initialize(array $config) { parent::initialize($config); $this->table('roles'); $this->primaryKey('id'); $this->displayField('title'); $this->addBehavior('Tree'); $this->addBehavior('Acl.Acl', ['type' => 'requester']); $this->addAssociations(['belongsTo' => ['ParentRole' => ['className' => 'Union/Community.Roles', 'foreignKey' => 'parent_id']]]); $this->behaviors()->load('Union/Core.Cached', ['groups' => ['roles'], 'config' => 'permission_roles']); }