[Доктрина \ Common \ Постоянство \ Mapping \ MappingException]Ошибка при попытке обновить: Схема
Класс 'Cunningsoft \ ChatBundle \ Entity \ AuthorInterface' не существует.
Эта ошибка возникает, когда я вставляю (новый Cunningsoft \ ChatBundle \ CunningsoftChatBundle(),) в AppKernel.php и после того, как утилиты (AuthorInterface) в моей сущности не могут обновиться: схема с этой ошибкой. enter image description here
<?php
//AppKernel.php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\SecurityBundle(),
new Symfony\Bundle\TwigBundle\TwigBundle(),
new Symfony\Bundle\MonologBundle\MonologBundle(),
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
new AppBundle\AppBundle(),
new helloBundle\helloBundle(),
new RegBundle\RegBundle(),
new IndexBundle\IndexBundle(),
new Knp\Bundle\PaginatorBundle\KnpPaginatorBundle(),
new Cunningsoft\ChatBundle\CunningsoftChatBundle(),
new Knp\Bundle\TimeBundle\KnpTimeBundle(),
);
if (in_array($this->getEnvironment(), array('dev', 'test'), true)) {
$bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle();
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
$bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
}
return $bundles;
}
public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml');
}
}
показать нам свою сущность и класс 'AuthorInterface'. –
Создает ли ваша организация AuthorInterface? –