^ Doctrine\ORM\ORMException {#2291
#message: "Entity 'Odiseo\SyliusBlogPlugin\Entity\Article' has no field 'taxon'. You can therefore not call 'findByTaxon' on the entities' repository"
#code: 0
#file: "/srv/sylius/vendor/doctrine/orm/lib/Doctrine/ORM/ORMException.php"
#line: 201
trace: {
/srv/sylius/vendor/doctrine/orm/lib/Doctrine/ORM/ORMException.php:201 {
Doctrine\ORM\ORMException::invalidMagicCall($entityName, $fieldName, $method) …
› {
› return new self(
› "Entity '".$entityName."' has no field '".$fieldName."'. ".
}
/srv/sylius/vendor/doctrine/orm/lib/Doctrine/ORM/EntityRepository.php:308 {
Doctrine\ORM\EntityRepository->resolveMagicCall($method, $by, array $arguments) …
› if (! ($this->_class->hasField($fieldName) || $this->_class->hasAssociation($fieldName))) {
› throw ORMException::invalidMagicCall($this->_entityName, $fieldName, $method . $by);
› }
arguments: {
$entityName: "Odiseo\SyliusBlogPlugin\Entity\Article"
$fieldName: "taxon"
$method: "findByTaxon"
}
}
/srv/sylius/vendor/doctrine/orm/lib/Doctrine/ORM/EntityRepository.php:224 {
Doctrine\ORM\EntityRepository->__call($method, $arguments) …
› if (0 === strpos($method, 'findBy')) {
› return $this->resolveMagicCall('findBy', substr($method, 6), $arguments);
› }
arguments: {
$method: "findBy"
$by: "Taxon"
$arguments: array:1 [ …1]
}
}
/srv/sylius/src/Controller/ProductController.php:230 {
App\Controller\ProductController->getArticles($taxons) …
› foreach ($taxons as $taxon){
› $articles = $repo->findByTaxon($taxon->getId());
› foreach ($articles as $article)
arguments: {
$method: "findByTaxon"
$arguments: array:1 [ …1]
}
}
/srv/sylius/src/Controller/ProductController.php:207 {
App\Controller\ProductController->showAction(Request $request): Response …
› 'cart' => $this->getcart(),
› 'articles' => $this->getArticles($resource->getTaxons()),
› $this->metadata->getName() => $resource,
arguments: {
$taxons: Doctrine\Common\Collections\ArrayCollection {#2263 …}
}
}
/srv/sylius/vendor/symfony/http-kernel/HttpKernel.php:158 {
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MASTER_REQUEST): Response …
› // call controller
› $response = $controller(...$arguments);
›
arguments: {
$request: Symfony\Component\HttpFoundation\Request {#7 …}
}
}
/srv/sylius/vendor/symfony/http-kernel/HttpKernel.php:80 {
Symfony\Component\HttpKernel\HttpKernel->handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true) …
› try {
› return $this->handleRaw($request, $type);
› } catch (\Exception $e) {
arguments: {
$request: Symfony\Component\HttpFoundation\Request {#7 …}
$type: 1
}
}
/srv/sylius/vendor/symfony/http-kernel/Kernel.php:201 {
Symfony\Component\HttpKernel\Kernel->handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true) …
› try {
› return $this->getHttpKernel()->handle($request, $type, $catch);
› } finally {
arguments: {
$request: Symfony\Component\HttpFoundation\Request {#7 …}
$type: 1
$catch: true
}
}
/srv/sylius/public/index.php:25 {
› $request = Request::createFromGlobals();
› $response = $kernel->handle($request);
› $response->send();
arguments: {
$request: Symfony\Component\HttpFoundation\Request {#7 …}
}
}
}
}