Answer the question
In order to leave comments, you need to log in
What is the correct way to create a model in symfony named 'transaction'?
Help solve the problem. When creating through the model generator in symfony, there is a problem with the transaction reserved word. The table itself is named the same. How do I properly write the command to escape this word?
Answer the question
In order to leave comments, you need to log in
**
* @ORM\Entity
* @ORM\Table(name="product")
*/
or
AppBundle\Entity\Product:
type: entity
table: product
rename the entity and everything will be fine. It is desirable to name tables in plural (transactions). In general, it is better to avoid using reserved words in the names of tables or table fields.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question