FriendsOfDoctrine / dbal-clickhouse

Doctrine DBAL driver for ClickHouse database
GNU General Public License v3.0
98 stars 80 forks source link

using repository throw new ORMException("TableGenerator not yet implemented."); #34

Open andrelec1 opened 4 years ago

andrelec1 commented 4 years ago

Try using clickhouse db in my synfony 4.4 project... I make a twig filter and try to make a request in ...

 /** @var EntityManager $em */
        $em = $this->container->get('doctrine.orm.clickhouse_entity_manager');
        /** @var ProbeDatumRepository $probeDatumRepository */
        $probeDatumRepository = $em->getRepository(ProbeDatum::class);

this throw exeption : TableGenerator not yet implemented.

Correcter commented 1 year ago

You should defile the identifier (the partition in my case) like this:

/**
     * @var string
     *
     * @ORM\Id
     * @ORM\Column(name="partition", type="string")
     */
private $partition;