Example #1
0
 /**
  * @return SchemaManager
  * @throws Exception\Database
  */
 public function getSchemaManager()
 {
     if ($this->schema === null) {
         $schemaBuilderClass = $this->getSchemaBuilderClass();
         if (is_subclass_of($schemaBuilderClass, 'Aviogram\\DAL\\Schema\\SchemaBuilderInterface') === false) {
             throw Exception\Database::invalidMetaSupportClass($this->getName());
         }
         $this->schema = new SchemaManager($this, new $schemaBuilderClass($this));
     }
     return $this->schema;
 }