Closed BernardoSilva closed 9 years ago
The SSOStateEntity should not be in the Doctrine namespace: it is not tied to the Doctrine ORM at all. And there should be no SSOStateDocument at all. The same class should be used.
I think you can close this ticket as well @tmilos . With mongoDB PR we ended up refactoring the whole bundle :p
src/AerialShip/SamlSPBundle/Doctrine/StateStoreManager.php
src/AerialShip/SamlSPBundle/Doctrine/MongoDB/Document/SSOStateDocument.php
SSOStateDocument
toSSOState
since its inside mongodb/document folder/namespace.SSOStateEntity
to../Doctrine/Orm/Entity/SSOStateEntity.php
SSOStateEntity
toSSOState
since its inside orm/entity folder/namespace.This is inspered on https://github.com/FriendsOfSymfony/FOSUserBundle/tree/master/Doctrine suggested by @stof on https://github.com/aerialship/SamlSPBundle/pull/71#issuecomment-95113848