Saving event with new location fails #27

Closed
opened 2014-09-29 13:26:29 +02:00 by andibraeu · 1 comment
andibraeu commented 2014-09-29 13:26:29 +02:00 (Migrated from github.com)

seems as there's missing something

Notice: Trying to get property of non-object in xyz/calcifer/src/Hackspace/Bundle/CalciferBundle/Controller/EventController.php line 249
500 Internal Server Error - ContextErrorException
Stack Trace

    in xyz/calcifer/src/Hackspace/Bundle/CalciferBundle/Controller/EventController.php at line 249  -
                        if (strlen($location_lon) > 0) {
                            $location_obj->lon = $location_lon;
                        }
                        $location_obj->slug = $location_obj->generateSlug($location->name,$em);
                        $em->persist($location_obj);
                        $em->flush();
                        $entity->setLocation($location_obj);
seems as there's missing something ``` Notice: Trying to get property of non-object in xyz/calcifer/src/Hackspace/Bundle/CalciferBundle/Controller/EventController.php line 249 500 Internal Server Error - ContextErrorException Stack Trace in xyz/calcifer/src/Hackspace/Bundle/CalciferBundle/Controller/EventController.php at line 249 - if (strlen($location_lon) > 0) { $location_obj->lon = $location_lon; } $location_obj->slug = $location_obj->generateSlug($location->name,$em); $em->persist($location_obj); $em->flush(); $entity->setLocation($location_obj); ```
enko commented 2014-09-29 14:01:57 +02:00 (Migrated from github.com)

Narf, you are right, I should add some unit tests.

Narf, you are right, I should add some unit tests.
This repo is archived. You cannot comment on issues.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Krautspace/calcifer#27
No description provided.