I'm new to Bolt CMS, but it looks good so far. My goal for now is to create rating for articles. For that, I created ratings
content type, and there I placed article_id
, user_id
and rating
fields. Now how can I set those fields to create relations between themselves?
Since Bolt is biult on Symfony, I'd expect it to use Doctrine and its tools.
My current contenttype for ratings
is very poor:
ratings:
name: Ratings
slug: ratings
singular_name: Rating
singular_slug: rating
fields:
article_id:
type: integer
user_id:
type: integer
rating:
type: integer