knplabs/KnpPaginatorBundle — Issue #47: Doctrine/DQL - two items in FROM not supported
Author: ehrid
Created: 2011-11-04 15:31:14+00:00
State: open

problem:
DQL supports unrelated entities by something like that:
'FROM Entity1 w, Entity2 l'
But it doesn't seems to work, every time I have an error (error below).

The problem appear when you need to make connection with unrelated (directly) entities,
eg:
Entity1(
ID
TagID REFERENCES Tag(ID)
)

Entity2(
ID
TagID REFERENCES Tag(ID)
)

Tag(
ID
Name
)

Only way to make it via Doctrine is to use FROM with two entities or NativeQuery...

error:
Warning: current() expects parameter 1 to be array, boolean given in /
var/www/Symfony/vendor/bundles/Knp/Bundle/PaginatorBundle/Event/
Listener/ORM/Paginate.php line 54