Changed the private properties into protected, because there is an Error,when serializen the AbstractToken in Symfony2 an user with a relation with a tralatable entity.