Skip to content

Adapter for plain phpcr#243

Open
patrick-tassa wants to merge 3 commits intowhiteoctober:masterfrom
patrick-tassa:master
Open

Adapter for plain phpcr#243
patrick-tassa wants to merge 3 commits intowhiteoctober:masterfrom
patrick-tassa:master

Conversation

@patrick-tassa
Copy link
Copy Markdown

No description provided.

@patrick-tassa
Copy link
Copy Markdown
Author

  • add description on README.md

@sampart
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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