Answer the question
In order to leave comments, you need to log in
How to specify relationships in Symfony when generating entity via command line?
I work with symfony 3, I generate entity. When generating an entity, there is: post, comment which has a post_id.
After choosing a name, there are types:
Available types: array, simple_array, json_array, object,
boolean, integer, smallint, bigint, string, text, datetime, datetimetz,
date, time, decimal, float, binary, blob, guid.
How to specify a link (foreign key) post_id for a comment via the command line?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question