createPersistence() public method

Create new persistence manager
public createPersistence ( ) : Sokil\Mongo\Persistence
return Sokil\Mongo\Persistence
Exemplo n.º 1
0
 public function setUp()
 {
     $this->client = new Client();
     $this->persistence = $this->client->createPersistence();
     $this->collection = $this->client->getDatabase('test')->getCollection('phpmongo_test_collection');
 }