parent
8b185eb822
commit
d7919678e5
@ -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()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user