Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repositiory now implements Doctrine\Common\Persistence\ObjectRepository #79

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Deltachaos
Copy link
Contributor

Because all Repositiories should implement this interface

*/
public function findBy(array $criteria)
public function findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
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