added to many fields to entities author, book, recipe and ingredient
This commit is contained in:
@@ -25,7 +25,7 @@ struct book
|
||||
namespace field = matador::utils::access;
|
||||
field::primary_key(op, "id", id);
|
||||
field::attribute(op, "title", title, 511);
|
||||
field::has_one(op, "author_id", book_author, utils::fetch_type::EAGER);
|
||||
field::belongs_to(op, "author_id", book_author, utils::fetch_type::EAGER);
|
||||
field::attribute(op, "published_in", published_in);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user