Updated Presentation Delete Method

updated test for presentaion delete method

Change-Id: I57834226eb073a5956452857390a6eda9c7b1369
This commit is contained in:
Sebastian Marcet 2018-02-15 13:30:39 -03:00
parent 1af87b2353
commit 85e4529a4b
4 changed files with 1126 additions and 1098 deletions

View File

@ -117,7 +117,7 @@ class Presentation extends SummitEvent
private $moderator;
/**
* @ORM\OneToMany(targetEntity="models\summit\PresentationMaterial", mappedBy="presentation", cascade={"persist"}, orphanRemoval=true)
* @ORM\OneToMany(targetEntity="models\summit\PresentationMaterial", mappedBy="presentation", cascade={"persist", "remove"}, orphanRemoval=true)
* @var PresentationMaterial[]
*/
private $materials;
@ -137,7 +137,7 @@ class Presentation extends SummitEvent
private $speakers;
/**
* @ORM\OneToMany(targetEntity="models\summit\SummitSelectedPresentation", mappedBy="presentation", cascade={"persist"}, orphanRemoval=true)
* @ORM\OneToMany(targetEntity="models\summit\SummitSelectedPresentation", mappedBy="presentation", cascade={"persist", "remove"}, orphanRemoval=true)
* @var SummitSelectedPresentation[]
*/
private $selected_presentations;

View File

@ -29,3 +29,7 @@ run following commands on root folder
## Permissions
Laravel may require some permissions to be configured: folders within storage and vendor require write access by the web server.
## check SS schema
php artisan doctrine:schema:create --sql --em=ss > ss.sql

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff