public function getRelations() { return [Enjoin::belongsTo(Enjoin::get('Books'), ['foreignKey' => 'books_id']), Enjoin::belongsTo(Enjoin::get('Publishers'), ['foreignKey' => 'publishers_id']), Enjoin::hasMany(Enjoin::get('Shipped'), ['foreignKey' => 'publishers_books_id']), Enjoin::hasMany(Enjoin::get('Preorders'), ['foreignKey' => 'publishers_books_id'])]; }
public function getRelations() { return [Enjoin::hasMany(Enjoin::get('Books'), ['foreignKey' => 'languages_id'])]; }
public function getRelations() { return [Enjoin::hasMany(Enjoin::get('PublishersBooks'), ['foreignKey' => 'publishers_id']), Enjoin::belongsTo(Enjoin::get('Publishers'), ['foreignKey' => 'pid', 'as' => 'parent']), Enjoin::hasMany(Enjoin::get('Publishers'), ['foreignKey' => 'pid', 'as' => 'child'])]; }
public function getRelations() { return [Enjoin::belongsTo(Enjoin::get('Authors'), ['foreignKey' => 'authors_id']), Enjoin::belongsTo(Enjoin::get('Languages'), ['foreignKey' => 'languages_id']), Enjoin::hasMany(Enjoin::get('Reviews'), ['foreignKey' => 'books_id']), Enjoin::hasMany(Enjoin::get('PublishersBooks'), ['foreignKey' => 'books_id'])]; }
public function getRelations() { return [Enjoin::hasMany(Enjoin::get('Articles'), ['foreignKey' => 'authors_id']), Enjoin::hasMany(Enjoin::get('Books'), ['foreignKey' => 'authors_id'])]; }