getSchema() public method

Returns a Schema object that describes an Entity in MongoDB.
public getSchema ( ) : Schema
return Schema
Beispiel #1
0
 /**
  * BulkWrite constructor.
  *
  * @param HasSchemaInterface $entity
  */
 public function __construct(HasSchemaInterface $entity)
 {
     $this->setBulkWrite(new MongoBulkWrite(['ordered' => false]));
     $this->schema = $entity->getSchema();
 }