public function initialize() { parent::initialize(); $this->setSource($this->className()); $this->hasManyToMany('id', 'App\\Models\\Relationships\\EventHasPack', 'pack_id', 'event_id', 'App\\Models\\Event', 'id', ['alias' => 'Events']); $this->hasManyToMany('id', 'App\\Models\\Relationships\\PackHasProduct', 'pack_id', 'product_id', 'App\\Models\\Product', 'id', ['alias' => 'Products']); }
public function initialize() { parent::initialize(); $this->setSource($this->className()); $this->belongsTo('period_id', 'App\\Models\\Period', 'id', ['alias' => 'Period', 'foreignKey' => ['message' => 'The period_id does not exist on the Period model']]); $this->hasOne('id', 'App\\Models\\Event', 'scheduling_id', ['alias' => 'Event']); }
public function initialize() { parent::initialize(); $this->setSource($this->className()); $this->hasOne('id', 'App\\Models\\Event', 'guestList_id', ['alias' => 'Event']); $this->hasManyToMany('id', 'App\\Models\\Relationships\\Belong', 'guestList_id', 'user_id', 'App\\Models\\User', 'id', ['alias' => 'Users']); }
public function initialize() { parent::initialize(); $this->setSource($this->className()); $this->hasOne('id', 'App\\Models\\User', 'rrpp_id', ['alias' => 'User']); $this->hasMany('id', 'App\\Models\\Local', 'owner_id', ['alias' => 'Locals']); }
public function initialize() { parent::initialize(); $this->setSource($this->className()); $this->hasManyToMany('id', 'App\\Models\\Relationships\\EventHasHashTag', 'hashTag_id', 'event_id', 'App\\Models\\Event', 'id', ['alias' => 'Events']); $this->hasManyToMany('id', 'App\\Models\\Relationships\\PhotoHasHashTag', 'hashTag_id', 'photo_id', 'App\\Models\\Photo', 'id', ['alias' => 'Photos']); }
public function initialize() { parent::initialize(); $this->setSource($this->className()); $this->belongsTo('user_id', 'App\\Models\\User', 'id', ['alias' => 'User', 'foreignKey' => ['message' => 'The user_id does not exist on the User model']]); $this->belongsTo('provider_id', 'App\\Models\\Provider', 'id', ['alias' => 'Provider', 'foreignKey' => ['message' => 'The provider_id does not exist on the Provider model']]); }
public function initialize() { parent::initialize(); $this->setSource($this->className()); $this->belongsTo('event_id', 'App\\Models\\Event', 'id', ['alias' => 'Event', 'foreignKey' => ['message' => 'The event_id does not exist on the Event model']]); $this->hasManyToMany('id', 'App\\Models\\Relationships\\Appear', 'photo_id', 'user_id', 'App\\Models\\User', 'id', ['alias' => 'UsersAppearing']); $this->hasManyToMany('id', 'App\\Models\\Relationships\\PhotoHasHashTag', 'photo_id', 'hashTag_id', 'App\\Models\\HashTag', 'id', ['alias' => 'HashTags']); }
public function initialize() { parent::initialize(); $this->setSource($this->className()); $this->belongsTo('owner_id', 'App\\Models\\RRPP', 'id', ['alias' => 'Owner', 'foreignKey' => ['message' => 'The owner_id does not exist on the RRPP model']]); $this->hasMany('id', 'App\\Models\\Event', 'local_id', ['alias' => 'Events']); $this->hasManyToMany('id', 'App\\Models\\Relationships\\Follow', 'local_id', 'user_id', 'App\\Models\\User', 'id', ['alias' => 'Followers']); }
public function initialize() { parent::initialize(); $this->setSource($this->className()); $this->belongsTo('local_id', 'App\\Models\\Local', 'id', ['alias' => 'Local', 'foreignKey' => ['message' => 'The local_id does not exist on the Local model']]); $this->belongsTo('guestList_id', 'App\\Models\\GuestList', 'id', ['alias' => 'GuestList', 'foreignKey' => ['allowNulls' => true, 'message' => 'The guestList_id does not exist on the GuestList model']]); $this->belongsTo('scheduling_id', 'App\\Models\\Scheduling', 'id', ['alias' => 'Scheduling', 'foreignKey' => ['allowNulls' => true, 'message' => 'The scheduling_id does not exist on the Scheduling model']]); $this->hasManyToMany('id', 'App\\Models\\Relationships\\Attend', 'event_id', 'user_id', 'App\\Models\\User', 'id', ['alias' => 'Users']); $this->hasMany('id', 'App\\Models\\Photo', 'event_id', ['alias' => 'Photos']); $this->hasManyToMany('id', 'App\\Models\\Relationships\\EventHasHashTag', 'event_id', 'hashTag_id', 'App\\Models\\HashTag', 'id', ['alias' => 'HashTags']); $this->hasManyToMany('id', 'App\\Models\\Relationships\\EventHasMusicTag', 'event_id', 'musicTag_id', 'App\\Models\\MusicTag', 'id', ['alias' => 'MusicTags']); $this->hasManyToMany('id', 'App\\Models\\Relationships\\EventHasPack', 'event_id', 'pack_id', 'App\\Models\\Pack', 'id', ['alias' => 'Packs']); }
public function initialize() { parent::initialize(); /** * Table name. */ $this->setSource($this->className()); /** * Relationships. */ $this->hasManyToMany('id', 'App\\Models\\Relationships\\Follower', 'user_id', 'follower_id', 'App\\Models\\User', 'id', ['alias' => 'Followers']); $this->hasManyToMany('id', 'App\\Models\\Relationships\\Follower', 'follower_id', 'user_id', 'App\\Models\\User', 'id', ['alias' => 'Following']); $this->hasManyToMany('id', 'App\\Models\\Relationships\\Appear', 'user_id', 'photo_id', 'App\\Models\\Photo', 'id', ['alias' => 'Photos']); $this->hasManyToMany('id', 'App\\Models\\Relationships\\Follow', 'user_id', 'local_id', 'App\\Models\\Local', 'id', ['alias' => 'LocalsFollowed']); $this->hasManyToMany('id', 'App\\Models\\Relationships\\Attend', 'user_id', 'event_id', 'App\\Models\\Event', 'id', ['alias' => 'Events']); $this->hasManyToMany('id', 'App\\Models\\Relationships\\Belong', 'user_id', 'guestList_id', 'App\\Models\\GuestList', 'id', ['alias' => 'GuestLists']); $this->belongsTo('rrpp_id', 'App\\Models\\RRPP', 'id', ['alias' => 'RRPPprofile', 'foreignKey' => ['allowNulls' => true, 'message' => 'The rrpp_id does not exist on the RRPP model']]); $this->hasMany('id', 'App\\Models\\Profile', 'user_id', ['alias' => 'Profiles']); }
public function initialize() { parent::initialize(); $this->setSource($this->className()); $this->hasMany('id', 'App\\Models\\Profile', 'provider_id', ['alias' => 'Profiles']); }
public function initialize() { parent::initialize(); $this->setSource($this->className()); $this->hasMany('id', 'App\\Models\\Scheduling', 'period_id', ['alias' => 'Schedulings']); }
public function initialize() { parent::initialize(); $this->setSource('users'); $this->hasMany('id', "App\\Models\\BookInstance", 'user_id', ["alias" => "bookInstances"]); }