Permalink
Browse files

MODM-58, implemented

  • Loading branch information...
1 parent e677f64 commit e46ec823bb1b2b463f4931a0cadfe6c6bd39286d @avalanche123 avalanche123 committed Aug 26, 2010
Showing with 9 additions and 0 deletions.
  1. +9 −0 lib/Doctrine/ODM/MongoDB/PersistentCollection.php
@@ -485,6 +485,15 @@ public function clear()
$this->changed();
$this->takeSnapshot();
}
+
+ /**
+ * {@inheritdoc}
+ */
+ public function slice($offset, $length = null)
+ {
@henrikbjorn
henrikbjorn Aug 26, 2010 Contributor

Why pass parameters to the method when they arent used :)

@avalanche123
avalanche123 Aug 26, 2010 Member

wow, will fix, thanks

+ $this->initialize();
+ return $this->coll->slice();
+ }
/**
* Called by PHP when this collection is serialized. Ensures that only the

3 comments on commit e46ec82

Please sign in to comment.