1
0
mirror of synced 2024-12-14 07:06:04 +03:00
This commit is contained in:
Fabio B. Silva 2012-03-26 01:03:32 -03:00
parent 67af9f1853
commit 6d1209c06d
2 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@ class MappingException extends \Doctrine\ORM\ORMException
{
if (null !== ($parent = get_parent_class($entityName))) {
return new self(sprintf(
'No identifier/primary key specified for Entity "%s" sub classe of "%s". Every Entity must have an identifier/primary key.',
'No identifier/primary key specified for Entity "%s" sub class of "%s". Every Entity must have an identifier/primary key.',
$entityName, $parent
));
}
@ -156,7 +156,7 @@ class MappingException extends \Doctrine\ORM\ORMException
{
if (null !== ($parent = get_parent_class($className))) {
return new self(sprintf(
'Class "%s" sub classe of "%s" is not a valid entity or mapped super class.',
'Class "%s" sub class of "%s" is not a valid entity or mapped super class.',
$className, $parent
));
}

View File

@ -469,7 +469,7 @@ abstract class AbstractMappingDriverTest extends \Doctrine\Tests\OrmTestCase
/**
* @group DDC-889
* @expectedException Doctrine\ORM\Mapping\MappingException
* @expectedExceptionMessage Class "Doctrine\Tests\Models\DDC889\DDC889Class" sub classe of "Doctrine\Tests\Models\DDC889\DDC889SuperClass" is not a valid entity or mapped super class.
* @expectedExceptionMessage Class "Doctrine\Tests\Models\DDC889\DDC889Class" sub class of "Doctrine\Tests\Models\DDC889\DDC889SuperClass" is not a valid entity or mapped super class.
*/
public function testInvalidEntityOrMappedSuperClassShouldMentionParentClasses()
{
@ -479,7 +479,7 @@ abstract class AbstractMappingDriverTest extends \Doctrine\Tests\OrmTestCase
/**
* @group DDC-889
* @expectedException Doctrine\ORM\Mapping\MappingException
* @expectedExceptionMessage No identifier/primary key specified for Entity "Doctrine\Tests\Models\DDC889\DDC889Entity" sub classe of "Doctrine\Tests\Models\DDC889\DDC889SuperClass". Every Entity must have an identifier/primary key.
* @expectedExceptionMessage No identifier/primary key specified for Entity "Doctrine\Tests\Models\DDC889\DDC889Entity" sub class of "Doctrine\Tests\Models\DDC889\DDC889SuperClass". Every Entity must have an identifier/primary key.
*/
public function testIdentifierRequiredShouldMentionParentClasses()
{