Skip to content

Commit

Permalink
fix: Missing NodesTagsRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
ambroisemaupate committed Jul 2, 2024
1 parent 6db4486 commit b80548d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/RoadizCoreBundle/src/Entity/NodesTags.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
use JMS\Serializer\Annotation as Serializer;
use RZ\Roadiz\Core\AbstractEntities\PositionedInterface;
use RZ\Roadiz\Core\AbstractEntities\PositionedTrait;
use RZ\Roadiz\CoreBundle\Repository\NodesTagsRepository;
use Symfony\Component\Serializer\Annotation as SymfonySerializer;

#[
ORM\Entity,
ORM\Entity(repositoryClass: NodesTagsRepository::class),
ORM\Table(name: "nodes_tags"),
ORM\Index(columns: ['node_id', 'position'], name: 'nodes_tags_node_id_position'),
ORM\Index(columns: ['tag_id', 'position'], name: 'nodes_tags_tag_id_position'),
Expand Down
22 changes: 22 additions & 0 deletions lib/RoadizCoreBundle/src/Repository/NodesTagsRepository.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

declare(strict_types=1);

namespace RZ\Roadiz\CoreBundle\Repository;

use Doctrine\Persistence\ManagerRegistry;
use RZ\Roadiz\CoreBundle\Entity\NodesTags;
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;

/**
* @extends EntityRepository<NodesTags>
*/
class NodesTagsRepository extends EntityRepository
{
public function __construct(
ManagerRegistry $registry,
EventDispatcherInterface $dispatcher
) {
parent::__construct($registry, NodesTags::class, $dispatcher);
}
}

0 comments on commit b80548d

Please sign in to comment.