/** * @internal * @param array $config */ public function initialize(array $config) { parent::initialize($config); $this->addBehavior('Timestamp'); $this->belongsTo('Characters'); $this->belongsTo('Skills'); }
/** * @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'); }
/** * @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']); }
/** * @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'); }
/** * @internal * @param array $config */ public function initialize(array $config) { parent::initialize($config); $this->displayField('note'); $this->addBehavior('Timestamp'); $this->BelongsToMany('Characters', ['through' => 'CharactersNotes']); }
/** * @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'); }
/** * @internal * @param array $config */ public function initialize(array $config) { parent::initialize($config); $this->displayField('name'); $this->hasMany('Characters'); $this->BelongsTo('Careers'); $this->BelongsTo('Sources'); }
/** * @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'); }
/** * @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']); }
/** * @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'); }
/** * @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'); }
/** * @internal * @param array $config */ public function initialize(array $config) { parent::initialize($config); }
/** * @internal * @param array $config */ public function initialize(array $config) { parent::initialize($config); $this->displayField('name'); $this->hasMany('Skills', ['foreignKey' => 'stat_id']); }
/** * @internal * @param array $config */ public function initialize(array $config) { parent::initialize($config); $this->displayField('name'); $this->addBehavior('Timestamp'); }
/** * @internal * @param array $config */ public function initialize(array $config) { parent::initialize($config); $this->addBehavior('Timestamp'); $this->hasMany('Weapons'); }
public function initialize(array $config) { parent::initialize($config); $this->addBehavior('User.Associatable'); }