I have an existing database. Lets say that I have a table named "transactions"
and I want to create the corresponding Entity named "Transaction"
. How can I do that?
you can set the name of the table using the @ORM\Table annotation
/**
* @ORM\Entity
* @ORM\Table(name="transactions")
*/
class Transaction
{
If you don't use Annotations, you can find details about other mappings from this link.
BTW, You can also generate Entities from an Existing Database.