Skip to content

Conversation

@Deltachaos
Copy link
Contributor

Because all Repositiories should implement this interface

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exception if I use a common API method?

@frne
Copy link
Contributor

frne commented May 23, 2014

@Deltachaos I'm currently managing to implement the Doctrine Common interfaces (especially ObjectManager and ObjectRepository) correctly. This is definitively a need, but I don't see the benefit of implementing interfaces and throwing exceptions if they are used as originally intended by Doctrine Common.

@lphuberdeau
Copy link
Owner

If it can be supported, we should support the arguments, not just accept them to respect the interface. That would be breaking the contract.

If the argument cannot be implemented for technical reasons, then I agree on an exception to avoid false promises.

@frne
Copy link
Contributor

frne commented May 28, 2014

@lphuberdeau Working on a solution based on #74 which also implements the ObjectManager interface. Will propose, once it's final ;)

BTW. Thx 4 merge...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants