Persistence with Doctrine does not take data from the object to the insert

2

I started a new project in PHP where every database is with tables and their columns with different names of classes and their attributes.

With the intention of gaining in the productivity of not being renamed I decided to apply Doctrine ORM (I have no experience with it), however I have the following problem.

<?php  

/**
 * Entity
 * Table(name="usuario")
 */
class Usuario {...}
    
asked by anonymous 20.11.2015 / 21:14

1 answer

0

Good afternoon, ladies and gentlemen.

I have identified the unfortunate error.

Note the mapping:

/ **  * Entity  * Table (name="user")  * / class User {...}

The "@" was missing before. Because of replacing IDE text I did not realize this and the error pointed out was not explicit.

Porting looks like this:

/ **  * @Entity  * @Table (name="user")  * / class User {...}

Thank you all.

    
23.11.2015 / 15:59