doctrine-extensions

Gedmo Tree getPath Error: Node is not related to this repository 500 Internal Server Error - InvalidArgumentException

早过忘川 提交于 2019-12-02 10:11:04
I am getting error: Node is not related to this repository 500 Internal Server Error - InvalidArgumentException UPDATE 1: it does not matter if I set up tree repository with traits or extend abstract repository the error is the same. UPDATE 2: Full stack trace http://pastebin.com/TtaJnyzf I want to output html tree with tree structure from database and specifically I need to get path from root to selected node . As I understand it, that is done with getPath() function. I am using: Symfony v3.0.6; Doctrine v2.5.4 StofDoctrineExtensionsBundle [1] in order to manage Tree structure. To setup Tree

Symfony 2.3 Gedmo doctrine extensions translatable caching

左心房为你撑大大i 提交于 2019-11-28 02:11:06
问题 I'm using Gedmo Doctrine extensions All works well so far, except for translations caching. $entity = $repository ->findByIdFullData($id) ->setHint(\Doctrine\ORM\Query::HINT_CUSTOM_OUTPUT_WALKER, 'Gedmo\\Translatable\\Query\\TreeWalker\\TranslationWalker') ->useResultCache(true, $cache_time, $cache_name) ->getOneOrNullResult(); findByIdFullData() returns \Doctrine\ORM\Query But the translations aren't cached. In profiler I see queries like that: SELECT e0_.content AS content0, e0_.field AS