diff --git a/lib/Phactory/Mongo/Collection.php b/lib/Phactory/Mongo/Collection.php index 3800b42..83efab6 100644 --- a/lib/Phactory/Mongo/Collection.php +++ b/lib/Phactory/Mongo/Collection.php @@ -30,6 +30,11 @@ public function __toString() { return $this->_name; } + public function insert($data, $options) { + $coll = $this->_collection; + return $coll->insert($data,$options); + } + public function __call($func, $args) { return call_user_func_array(array($this->_collection, $func), $args); }