示例#1
0
 /**
  * @internal
  * @param array $config
  */
 public function initialize(array $config)
 {
     parent::initialize($config);
     $this->addBehavior('Timestamp');
     $this->belongsTo('Characters');
     $this->belongsTo('Skills');
 }
示例#2
0
 /**
  * @internal
  * @param array $config
  */
 public function initialize(array $config)
 {
     parent::initialize($config);
     $this->addBehavior('Timestamp');
     $this->belongsTo('ItemTypes', ['foreignKey' => 'item_type_id', 'joinType' => 'INNER']);
     $this->belongsTo('Sources');
 }
示例#3
0
 /**
  * @internal
  * @param array $config
  */
 public function initialize(array $config)
 {
     parent::initialize($config);
     $this->addBehavior('Timestamp');
     $this->belongsTo('Characters', ['foreignKey' => 'character_id', 'joinType' => 'INNER']);
     $this->belongsTo('Notes', ['foreignKey' => 'note_id', 'joinType' => 'INNER']);
 }
示例#4
0
 /**
  * @internal
  * @param array $config
  */
 public function initialize(array $config)
 {
     parent::initialize($config);
     $this->addBehavior('Timestamp');
     $this->belongsTo('Species');
     $this->belongsTo('Users');
     $this->hasMany('CharactersArmour');
     $this->hasMany('CharactersGroups');
     $this->hasMany('CharactersItems');
     $this->hasMany('CharactersSkills');
     $this->hasMany('CharactersSpecialisations');
     $this->hasMany('CharactersCareers');
     $this->hasMany('CharactersTalents');
     $this->hasMany('CharactersWeapons');
     $this->hasMany('Obligations');
     $this->hasMany('Xp');
     $this->belongsToMany('Armour', ['through' => 'CharactersArmour']);
     // Specify the join-table name because by convention it should be called ArmourCharacters
     $this->belongsToMany('Careers', ['through' => 'CharactersCareers']);
     // Specify the join-table name because by convention it should be called CareersCharacters
     $this->belongsToMany('Groups');
     $this->belongsToMany('Items');
     $this->belongsToMany('Skills');
     $this->belongsToMany('Talents');
     $this->belongsToMany('Notes');
     $this->belongsToMany('Weapons');
     $this->belongsToMany('Specialisations');
 }
示例#5
0
 /**
  * @internal
  * @param array $config
  */
 public function initialize(array $config)
 {
     parent::initialize($config);
     $this->displayField('note');
     $this->addBehavior('Timestamp');
     $this->BelongsToMany('Characters', ['through' => 'CharactersNotes']);
 }
示例#6
0
 /**
  * @internal
  * @param array $config
  */
 public function initialize(array $config)
 {
     parent::initialize($config);
     $this->belongsTo('Stats', ['foreignKey' => 'stat_id', 'joinType' => 'INNER']);
     $this->hasMany('CharactersSkills');
     $this->belongsToMany('Characters');
     $this->belongsTo('Sources');
 }
示例#7
0
 /**
  * @internal
  * @param array $config
  */
 public function initialize(array $config)
 {
     parent::initialize($config);
     $this->displayField('name');
     $this->hasMany('Characters');
     $this->BelongsTo('Careers');
     $this->BelongsTo('Sources');
 }
示例#8
0
 /**
  * @internal
  * @param array $config
  */
 public function initialize(array $config)
 {
     parent::initialize($config);
     $this->addBehavior('Timestamp');
     $this->hasMany('CharactersGroups');
     $this->hasMany('GroupsUsers');
     $this->belongsToMany('Users');
     $this->belongsToMany('Characters');
 }
示例#9
0
 /**
  * @internal
  * @param array $config
  */
 public function initialize(array $config)
 {
     parent::initialize($config);
     $this->addBehavior('Timestamp');
     $this->addBehavior('Ceeram/Blame.Blame');
     $this->belongsTo('Characters');
     $this->belongsTo('CreatedUser', ['className' => 'Users', 'foreignKey' => 'created_by']);
     $this->belongsTo('ModifyUser', ['className' => 'Users', 'foreignKey' => 'modified_by']);
 }
示例#10
0
 /**
  * @internal
  * @param array $config
  */
 public function initialize(array $config)
 {
     parent::initialize($config);
     $this->table('armour');
     $this->addBehavior('Timestamp');
     $this->hasMany('CharactersArmour');
     $this->belongsToMany('Characters', ['through' => 'CharactersArmour']);
     // Specify the join-table name because by convention it should be called ArmourCharacters
     $this->belongsTo('Sources');
 }
示例#11
0
 /**
  * @internal
  * @param array $config
  */
 public function initialize(array $config)
 {
     parent::initialize($config);
     $this->displayField('name');
     $this->addBehavior('Timestamp');
     $this->belongsTo('WeaponTypes', ['foreignKey' => 'weapon_type_id', 'joinType' => 'INNER']);
     $this->belongsTo('Skills', ['foreignKey' => 'skill_id', 'joinType' => 'INNER']);
     $this->belongsTo('Ranges', ['foreignKey' => 'range_id', 'joinType' => 'INNER']);
     $this->BelongsTo('Sources');
     $this->hasMany('CharactersWeapons');
     $this->belongsToMany('Characters');
 }
示例#12
0
 /**
  * @internal
  * @param array $config
  */
 public function initialize(array $config)
 {
     parent::initialize($config);
 }
示例#13
0
 /**
  * @internal
  * @param array $config
  */
 public function initialize(array $config)
 {
     parent::initialize($config);
     $this->displayField('name');
     $this->hasMany('Skills', ['foreignKey' => 'stat_id']);
 }
示例#14
0
 /**
  * @internal
  * @param array $config
  */
 public function initialize(array $config)
 {
     parent::initialize($config);
     $this->displayField('name');
     $this->addBehavior('Timestamp');
 }
示例#15
0
 /**
  * @internal
  * @param array $config
  */
 public function initialize(array $config)
 {
     parent::initialize($config);
     $this->addBehavior('Timestamp');
     $this->hasMany('Weapons');
 }
示例#16
0
文件: AppTable.php 项目: oxenti/user
 public function initialize(array $config)
 {
     parent::initialize($config);
     $this->addBehavior('User.Associatable');
 }