/** * @param Nette\DI\ServiceDefinition $def * @return string[] */ protected function getServiceBoundManagers(Nette\DI\ServiceDefinition $def) { $builder = $this->getContainerBuilder(); $boundManagers = $def->getTag(self::TAG_BIND_TO_MANAGER); return is_array($boundManagers) ? $boundManagers : array($builder->parameters[$this->name]['orm']['defaultEntityManager']); }