@PedroTroller your impl: https://github.com/KnpLabs/KnpRadBundle/blob/57292dfd88350cd9877aa064056aed510494c802/Controller/Controller.php#L98

if you pass an instance of EntityRepository, it will ask is_object ? yes is entitymanager->contains() ? no
Why the hell would you ask EM if entityRepository is contained?