It causes the error in the UnitOfWork::tryGetById, if the values of composite key are entities because of the method "implode()" is invoked.