Answer the question
In order to leave comments, you need to log in
Optimal way to map Entity parameters?
What is the best way to advertise and in what cases?
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
# src/Resources/config/doctrine/Product.orm.yml
App\Entity\Product:
type: entity
table: product
id:
id:
type: integer
<!-- src/Resources/config/doctrine/Product.orm.xml -->
<?xml version="1.0" encoding="UTF-8" ?>
<doctrine-mapping xmlns="http://doctrine-project.org/schemas
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