Skip to content

Commit

Permalink
Remov newline from error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Feb 28, 2016
1 parent be4eeef commit 06d1c4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/ORM/Association.php
Expand Up @@ -439,7 +439,7 @@ public function property($name = null)
$this->_propertyName = $this->_propertyName();
if (in_array($this->_propertyName, $this->_sourceTable->schema()->columns())) {
$msg = 'Association property name "%s" clashes with field of same name of table "%s".' .
"\n" . 'You should explicitly specify the "propertyName" option.';
' You should explicitly specify the "propertyName" option.';
trigger_error(
sprintf($msg, $this->_propertyName, $this->_sourceTable->table()),
E_USER_WARNING
Expand Down
1 change: 1 addition & 0 deletions tests/TestCase/ORM/AssociationTest.php
Expand Up @@ -334,6 +334,7 @@ public function testProperty()
*
* @return void
* @expectedException PHPUnit_Framework_Error_Warning
* @expectedExceptionMessageRegExp /^Association property name "foo" clashes with field of same name of table "test"/
*/
public function testPropertyNameClash()
{
Expand Down

0 comments on commit 06d1c4a

Please sign in to comment.