Php Symfony 3带有AbstractCollectionPersiste的命名空间的原则错误
在我的服务器上插入带条令时出现此错误: 试图从命名空间“条令\ORM\Persisters\Collection”加载接口“CollectionPersister”。 您是否忘记了另一个名称空间的“use”语句 文件夹: 供应商\条令\orm\lib\doctor\orm\Persisters\Collection AbstractCollectionPersister:Php Symfony 3带有AbstractCollectionPersiste的命名空间的原则错误,php,doctrine-orm,symfony,Php,Doctrine Orm,Symfony,在我的服务器上插入带条令时出现此错误: 试图从命名空间“条令\ORM\Persisters\Collection”加载接口“CollectionPersister”。 您是否忘记了另一个名称空间的“use”语句 文件夹: 供应商\条令\orm\lib\doctor\orm\Persisters\Collection AbstractCollectionPersister: namespace Doctrine\ORM\Persisters\Collection; use Doctrine\OR
namespace Doctrine\ORM\Persisters\Collection;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\UnitOfWork;
/**
* Base class for all collection persisters.
*
* @since 2.0
* @author Roman Borschel <roman@code-factory.org>
*/
abstract class AbstractCollectionPersister implements CollectionPersister
namespace Doctrine\ORM\Persisters\Collection;
use Doctrine\Common\Collections\Criteria;
use Doctrine\ORM\PersistentCollection;
/**
* Collection persister interface
* Define the behavior that should be implemented by all collection persisters.
*
* @author Fabio B. Silva <fabio.bat.silva@gmail.com>
* @since 2.5
*/
interface CollectionPersister
它在本地工作,但在服务器上不工作。我已尝试添加该用法,但它没有像预期的那样识别它。在本地,更改了composer.json:
"doctrine/doctrine-bundle": "^1.5",
运行composer update,并将条令供应商复制到服务器=问题已解决。无需在标题中添加“已解决”-我们这里不这样做。只要在系统允许的情况下接受这个正确的答案(使用左边的勾号)。我刚刚看到我只需要再等5个小时。谢谢你的提示。
"doctrine/doctrine-bundle": "^1.5",