public function addObject(Object $object) { $object->setBundle($this); $this->objects[strtolower($object->getId())] = $object; }