I have an Entity i.e Users
. I want to make getters and setters of this entity in Doctrine, so that Doctrine can read it.
How can I do it, can someone provide me basic example? I am a beginner
How to insert data in this database table?
Here is my Users entity
<?php
/**
* @Entity
* @Table(name="users")
* Total Number of Columns : 32
*/
class Users{
/* Attributes of Users */
/**
* @Id
* @Column(type="integer")
* @GeneratedValue
* @dummy
* @Assert\NotEmpty
*/
private $id;
/**
* @Column(type="string")
* @Assert\NotEmpty
*/
private $name;
/**
* @Column(type="string")
* @Assert\NotEmpty
*/
private $email;
}
?>