コード例 #1
0
ファイル: Schema.php プロジェクト: BacLuc/newGryfiPage
 /**
  * Creates a new namespace.
  *
  * @param string $namespaceName The name of the namespace to create.
  *
  * @return \Doctrine\DBAL\Schema\Schema This schema instance.
  */
 public function createNamespace($namespaceName)
 {
     $unquotedNamespaceName = strtolower($this->getUnquotedAssetName($namespaceName));
     if (isset($this->namespaces[$unquotedNamespaceName])) {
         throw SchemaException::namespaceAlreadyExists($unquotedNamespaceName);
     }
     $this->namespaces[$unquotedNamespaceName] = $namespaceName;
     return $this;
 }