1
0
mirror of synced 2025-02-02 13:31:45 +03:00

#6613 #6614 remove superfluous mappings

This commit is contained in:
Marco Pivetta 2017-08-11 14:34:35 +02:00
parent 8b185eb822
commit d7919678e5
No known key found for this signature in database
GPG Key ID: 4167D3337FD9D629

View File

@ -76,22 +76,13 @@ class DDC6613Test extends OrmFunctionalTestCase
} }
} }
/** /** @Entity */
* @Entity
* @Table(name="ddc6613_user")
*/
class DDC6613User class DDC6613User
{ {
/** /** @Id @Column(type="string") */
* @Id
* @GeneratedValue(strategy="NONE")
* @Column(type="string")
*/
public $id; public $id;
/** /** @ManyToMany(targetEntity=DDC6613Phone::class) */
* @ManyToMany(targetEntity=DDC6613Phone::class, fetch="LAZY", cascade={"remove", "detach"})
*/
public $phones; public $phones;
public function __construct() public function __construct()
@ -101,18 +92,11 @@ class DDC6613User
} }
} }
/** /** @Entity */
* @Entity
* @Table(name="ddc6613_phone")
*/
class DDC6613Phone class DDC6613Phone
{ {
/** /** @Id @Column(type="integer") */
* @Id private $id;
* @GeneratedValue(strategy="NONE")
* @Column(type="integer")
*/
public $id;
public function __construct() public function __construct()
{ {