<?php
namespace App\Service\WordPress;
use App\Traits\Foreachable;
use Doctrine\ORM\EntityManagerInterface;
use Kayue\WordpressBundle\Entity\Post;
class PostCollection implements \Iterator
{
use Foreachable;
protected $postRepository;
public function __construct(EntityManagerInterface $entityManager)
{
$this->postRepository = $entityManager->getRepository(Post::class);
}
}
I get:
The class 'Kayue\WordpressBundle\Entity\Post' was not found in the chain configured namespaces App\Entity.
I'm pretty sure my repo for WordPress is misconfigured, but I cannot understand how to fix it.
Hi, I'm stuck in my Symfony 4.4.1 project.
This is my config:
Unfortunately I'm unable to get the repo:
I get:
The class 'Kayue\WordpressBundle\Entity\Post' was not found in the chain configured namespaces App\Entity
.I'm pretty sure my repo for WordPress is misconfigured, but I cannot understand how to fix it.
Thanks for you help, merry Christmas!