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

Adapter for plain phpcr #243

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

patrick-tassa
Copy link

No description provided.

@patrick-tassa
Copy link
Author

  • add description on README.md

@sampart
Copy link
Collaborator

sampart commented Jan 2, 2018

Thanks for contributing, @patrick-tassa! Please could you add some tests for this? If it helps, you could take a look at some of the existing Doctrine tests (e.g. DoctrineCollectionAdapterTest) and adapt those. Thanks

@@ -0,0 +1,67 @@
<?php
Copy link
Contributor

Choose a reason for hiding this comment

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

this file is missing the .php extension

use Doctrine\ODM\PHPCR\Query\Query;

/**
* Pagerfanta adapter for Doctrine Plain PHPCR.
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think the Doctrine PHPCR ODM has a concept named Doctrine Plain PHPCR

*/
public function getSlice($offset, $length)
{
return $this->queryBuilder
Copy link
Contributor

Choose a reason for hiding this comment

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

the query builder must be cloned before altering it.

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