From dcb1fcdb75d7c55f2f8d476ea2df97e83ac09f86 Mon Sep 17 00:00:00 2001 From: jwage Date: Sat, 30 May 2009 23:47:28 +0000 Subject: [PATCH] [2.0] Removing remaining return methods where not needed --- lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php b/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php index d8edb8bf5..09378d2ad 100644 --- a/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php +++ b/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php @@ -298,8 +298,7 @@ abstract class AbstractSchemaManager */ public function dropConstraint($table, $name, $primary = false) { - $sql = $this->_platform->getDropConstraintSql($table, $name, $primary); - $this->_execSql($sql); + $this->_execSql($this->_platform->getDropConstraintSql($table, $name, $primary)); } /** @@ -332,7 +331,7 @@ abstract class AbstractSchemaManager */ public function dropView($name) { - return $this->_execSql($this->_platform->getDropViewSql($name)); + $this->_execSql($this->_platform->getDropViewSql($name)); } /* create*() Methods */ @@ -452,7 +451,7 @@ abstract class AbstractSchemaManager */ public function createForeignKey($table, array $definition) { - return $this->_execSql($this->_platform->getCreateForeignKeySql($table, $definition)); + $this->_execSql($this->_platform->getCreateForeignKeySql($table, $definition)); } /** @@ -463,7 +462,7 @@ abstract class AbstractSchemaManager */ public function createView($name, $sql) { - return $this->_execSql($this->_platform->getCreateViewSql($name, $sql)); + $this->_execSql($this->_platform->getCreateViewSql($name, $sql)); } /* dropAndCreate*() Methods */ @@ -686,7 +685,7 @@ abstract class AbstractSchemaManager */ public function alterTable($name, array $changes, $check = false) { - return $this->_execSql($this->_platform->getAlterTableSql($name, $changes, $check)); + $this->_execSql($this->_platform->getAlterTableSql($name, $changes, $check)); } /**