'id', 'title' => 'title' ]; } public function initialize() { $this->hasMany('id', Photo::class, 'albumId', [ 'alias' => 'Photos', ]); } }