Inheritance: extends AclNodesTable
Beispiel #1
0
 /**
  * initialize
  *
  * @param array $config Configuration array
  * @return void
  */
 public function initialize(array $config)
 {
     parent::initialize($config);
     $this->alias('DbPermissionTest');
     $this->associations()->removeAll();
     $this->belongsTo('DbAroTest', ['className' => __NAMESPACE__ . '\\DbAroTest', 'foreignKey' => 'aro_id']);
     $this->belongsTo('DbAcoTest', ['className' => __NAMESPACE__ . '\\DbAcoTest', 'foreignKey' => 'aco_id']);
 }
Beispiel #2
0
 /**
  * initialize
  *
  * @param array $config Configuration array
  * @return void
  */
 public function initialize(array $config)
 {
     parent::initialize($config);
     $this->alias('PermissionTwoTest');
     $this->entityClass('Acl\\Model\\Entity\\Permission');
     $this->table('aros_aco_twos');
     $this->associations()->removeAll();
     $this->belongsTo('AroTwoTest', ['foreignKey' => 'aro_id', 'className' => __NAMESPACE__ . '\\AroTwoTest']);
     $this->belongsTo('AcoTwoTest', ['foreignKey' => 'aco_id', 'className' => __NAMESPACE__ . '\\AcoTwoTest']);
 }