Commit 227404dd authored by Regis's avatar Regis
Browse files

Merge branch '#84_possibility_to_set_the_track_of_an_participant_to_null' into 'master'

#84 possibility to set the track of an participant to null

See merge request a_boiteau/site-vikazimut-stage!43
parents aa3d612e 17a5b9e9
......@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "9e8b58caa51be3dac3fb6ee3061640b2",
"content-hash": "f4d73d01dfabc794c03f605ae1bd84b5",
"packages": [
{
"name": "composer/package-versions-deprecated",
......@@ -153,16 +153,16 @@
},
{
"name": "doctrine/cache",
"version": "1.11.2",
"version": "1.11.3",
"source": {
"type": "git",
"url": "https://github.com/doctrine/cache.git",
"reference": "9c53086695937c50c47936ed86d96150ffbcf60d"
"reference": "3bb5588cec00a0268829cc4a518490df6741af9d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/doctrine/cache/zipball/9c53086695937c50c47936ed86d96150ffbcf60d",
"reference": "9c53086695937c50c47936ed86d96150ffbcf60d",
"url": "https://api.github.com/repos/doctrine/cache/zipball/3bb5588cec00a0268829cc4a518490df6741af9d",
"reference": "3bb5588cec00a0268829cc4a518490df6741af9d",
"shasum": ""
},
"require": {
......@@ -232,7 +232,7 @@
],
"support": {
"issues": "https://github.com/doctrine/cache/issues",
"source": "https://github.com/doctrine/cache/tree/1.11.2"
"source": "https://github.com/doctrine/cache/tree/1.11.3"
},
"funding": [
{
......@@ -248,7 +248,7 @@
"type": "tidelift"
}
],
"time": "2021-05-20T14:57:29+00:00"
"time": "2021-05-25T09:01:55+00:00"
},
{
"name": "doctrine/collections",
......@@ -2240,16 +2240,16 @@
},
{
"name": "paragonie/sodium_compat",
"version": "v1.16.0",
"version": "v1.16.1",
"source": {
"type": "git",
"url": "https://github.com/paragonie/sodium_compat.git",
"reference": "928e0565c9fe4f60b8f09119656c1aa418fc84ab"
"reference": "2e856afe80bfc968b47da1f4a7e1ea8f03d06b38"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/paragonie/sodium_compat/zipball/928e0565c9fe4f60b8f09119656c1aa418fc84ab",
"reference": "928e0565c9fe4f60b8f09119656c1aa418fc84ab",
"url": "https://api.github.com/repos/paragonie/sodium_compat/zipball/2e856afe80bfc968b47da1f4a7e1ea8f03d06b38",
"reference": "2e856afe80bfc968b47da1f4a7e1ea8f03d06b38",
"shasum": ""
},
"require": {
......@@ -2320,9 +2320,9 @@
],
"support": {
"issues": "https://github.com/paragonie/sodium_compat/issues",
"source": "https://github.com/paragonie/sodium_compat/tree/v1.16.0"
"source": "https://github.com/paragonie/sodium_compat/tree/v1.16.1"
},
"time": "2021-05-14T03:03:19+00:00"
"time": "2021-05-25T12:58:14+00:00"
},
{
"name": "phpdocumentor/reflection-common",
......@@ -10552,7 +10552,8 @@
"ext-libxml": "*",
"ext-openssl": "*",
"ext-pdo": "*",
"ext-simplexml": "*"
"ext-simplexml": "*",
"ext-zlib": "*"
},
"platform-dev": [],
"plugin-api-version": "2.0.0"
......
......@@ -19,6 +19,7 @@ class ModifyParticipantMakeEventCourseType extends AbstractType
public function buildForm(FormBuilderInterface $builder, array $options)
{
$tracks = [];
$tracks["-"] = null;
foreach ($options['course']->getOrienteer() as $track){
$tracks[$track->getName()] = $track;
}
......
......@@ -13,7 +13,7 @@ use Doctrine\Persistence\ObjectManager;
class ModifyParticipantMakeEventCourse
{
private ?Track $track;
private ?Track $track=null;
private ?ParticipantMakeEventCourse $participantMakeEventCourse;
......@@ -67,6 +67,7 @@ class ModifyParticipantMakeEventCourse
public function modify(ObjectManager $entityManager, ParticipantMakeEventCourseRepository $participantMakeEventCourseRepository)
{
dump($this);
$this->participantMakeEventCourse->setTrack($this->track);
$this->participantMakeEventCourse->setModified(true);
$entityManager->persist($this->participantMakeEventCourse);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment