mirror of
https://framagit.org/tykayn/date-poll-api
synced 2023-08-25 08:23:11 +02:00
📖 cascade properties of owner
This commit is contained in:
parent
ffb8b14b53
commit
d1dd8955a3
src/Entity
@ -30,7 +30,7 @@ class Owner {
|
||||
*/
|
||||
private $email;
|
||||
/**
|
||||
* @ORM\OneToMany(targetEntity="App\Entity\Poll", mappedBy="owner",cascade={"persist"})
|
||||
* @ORM\OneToMany(targetEntity="App\Entity\Poll", mappedBy="owner",cascade={"persist","remove"})
|
||||
* @Serializer\Type("App\Entity\Poll")
|
||||
*/
|
||||
private $polls;
|
||||
|
@ -19,7 +19,7 @@ class StackOfVotes {
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @ORM\OneToMany(targetEntity="App\Entity\poll", mappedBy="stacksOfVotes")
|
||||
* @ORM\OneToMany(targetEntity="App\Entity\poll", mappedBy="stacksOfVotes", cascade={"persist","remove"})
|
||||
*/
|
||||
private $votes;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user