Author: fabien
Date: 2010-03-05 16:34:06 +0100 (Fri, 05 Mar 2010)
New Revision: 28393
Modified:
branches/1.2/lib/plugins/sfPropelPlugin/lib/builder/SfPeerBuilder.php
branches/1.3/lib/plugins/sfPropelPlugin/lib/builder/SfPeerBuilder.php
Log:
[1.2, 1.3] removed unneeded code (which breaks the separation of concerns by
the way - closes #8375)
Modified: branches/1.2/lib/plugins/sfPropelPlugin/lib/builder/SfPeerBuilder.php
===================================================================
--- branches/1.2/lib/plugins/sfPropelPlugin/lib/builder/SfPeerBuilder.php
2010-03-05 13:43:04 UTC (rev 28392)
+++ branches/1.2/lib/plugins/sfPropelPlugin/lib/builder/SfPeerBuilder.php
2010-03-05 15:34:06 UTC (rev 28393)
@@ -229,7 +229,6 @@
$script .= str_replace("return
{$this->basePeerClassname}::doValidate(".$this->getPeerClassname()."::DATABASE_NAME,
".$this->getPeerClassname()."::TABLE_NAME, \$columns);\n",
"\$res =
{$this->basePeerClassname}::doValidate(".$this->getPeerClassname()."::DATABASE_NAME,
".$this->getPeerClassname()."::TABLE_NAME, \$columns);\n".
" if (\$res !== true) {\n".
- " \$request = sfContext::getInstance()->getRequest();\n".
" foreach (\$res as \$failed) {\n".
" \$col =
".$this->getPeerClassname()."::translateFieldname(\$failed->getColumn(),
BasePeer::TYPE_COLNAME, BasePeer::TYPE_PHPNAME);\n".
" }\n".
Modified: branches/1.3/lib/plugins/sfPropelPlugin/lib/builder/SfPeerBuilder.php
===================================================================
--- branches/1.3/lib/plugins/sfPropelPlugin/lib/builder/SfPeerBuilder.php
2010-03-05 13:43:04 UTC (rev 28392)
+++ branches/1.3/lib/plugins/sfPropelPlugin/lib/builder/SfPeerBuilder.php
2010-03-05 15:34:06 UTC (rev 28393)
@@ -225,7 +225,6 @@
$script .= str_replace("return
{$this->basePeerClassname}::doValidate(".$this->getPeerClassname()."::DATABASE_NAME,
".$this->getPeerClassname()."::TABLE_NAME, \$columns);\n",
"\$res =
{$this->basePeerClassname}::doValidate(".$this->getPeerClassname()."::DATABASE_NAME,
".$this->getPeerClassname()."::TABLE_NAME, \$columns);\n".
" if (\$res !== true) {\n".
- " \$request = sfContext::getInstance()->getRequest();\n".
" foreach (\$res as \$failed) {\n".
" \$col =
".$this->getPeerClassname()."::translateFieldname(\$failed->getColumn(),
BasePeer::TYPE_COLNAME, BasePeer::TYPE_PHPNAME);\n".
" }\n".
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.