Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TreeListener is not registered with gedmo/doctrine-extensions 3.10 #31

Closed
sasule opened this issue Dec 19, 2022 · 4 comments
Closed

TreeListener is not registered with gedmo/doctrine-extensions 3.10 #31

sasule opened this issue Dec 19, 2022 · 4 comments

Comments

@sasule
Copy link

sasule commented Dec 19, 2022

When using this extension together with gedmo/doctrine-extansions v3.10 then there is no TreeListener registered.

Even manual registration of listener fails.

$evm = $em->getEventManager();
$treeListener = new \Gedmo\Tree\TreeListener();
$evm->addEventSubscriber($treeListener);

This code should add listener to EventManager but calling $evm->getAllListeners() is empty.

Gedmo/doctrine-extensions v3.9 is OK (no change in configs reuired)

@Pepino483
Copy link

Also problem with Sortable behavior.

This repository can be attached only to ORM sortable listener. 
/vendor/gedmo/doctrine-extensions/src/Sortable/Entity/Repository/SortableRepository.php:56

@tg666
Copy link

tg666 commented Jan 6, 2023

Hi, if you need a hotfix for this issue, you can get inspired here 🙂
https://gist.github.com/tg666/0747d03d4356061585f9f635f7b054d3

@thorewi
Copy link
Contributor

thorewi commented Jan 7, 2023

Hi, I guess I fixed it here contributte/doctrine-dbal#73.

For now it's in master.

@tg666
Copy link

tg666 commented Jan 7, 2023

Hi, I guess I fixed it here contributte/doctrine-dbal#73.

For now it's in master.

Ah cool, I missed that PR. Thanks :)

@f3l1x f3l1x closed this as completed Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants