G
G
gitdev2019-05-04 03:20:44
symfony
gitdev, 2019-05-04 03:20:44

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

1 answer(s)
A
Alexander, 2019-05-04
@Minifets

I don’t remember exactly, but this possibility appeared only with some update in Synfony 4. In the 3rd version, it was not possible to specify OneToMany, etc. when generating through the console. types.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question