Fix CS
This commit is contained in:
parent
36dc560533
commit
9cee329407
@ -33,8 +33,10 @@ class HydrationException extends \Doctrine\ORM\ORMException
|
|||||||
*/
|
*/
|
||||||
public static function missingDiscriminatorColumn($entityName, $discrColumnName, $dqlAlias)
|
public static function missingDiscriminatorColumn($entityName, $discrColumnName, $dqlAlias)
|
||||||
{
|
{
|
||||||
return new self("The discriminator column '$discrColumnName' "
|
return new self(sprintf(
|
||||||
. "is missing for '$entityName' using the DQL alias '$dqlAlias'.");
|
'The discriminator column "%s" is missing for "%s" using the DQL alias "%s".',
|
||||||
|
$discrColumnName, $entityName, $dqlAlias
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -46,7 +48,9 @@ class HydrationException extends \Doctrine\ORM\ORMException
|
|||||||
*/
|
*/
|
||||||
public static function missingDiscriminatorMetaMappingColumn($entityName, $discrColumnName, $dqlAlias)
|
public static function missingDiscriminatorMetaMappingColumn($entityName, $discrColumnName, $dqlAlias)
|
||||||
{
|
{
|
||||||
return new self("The meta mapping for the discriminator column '$discrColumnName' "
|
return new self(sprintf(
|
||||||
. "is missing for '$entityName' using the DQL alias '$dqlAlias'.");
|
'The meta mapping for the discriminator column "%s" is missing for "%s" using the DQL alias "%s".',
|
||||||
|
$discrColumnName, $entityName, $dqlAlias
|
||||||
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1869,7 +1869,7 @@ class ObjectHydratorTest extends HydrationTestCase
|
|||||||
* @group DDC-1470
|
* @group DDC-1470
|
||||||
*
|
*
|
||||||
* @expectedException \Doctrine\ORM\Internal\Hydration\HydrationException
|
* @expectedException \Doctrine\ORM\Internal\Hydration\HydrationException
|
||||||
* @expectedExceptionMessage The meta mapping for the discriminator column 'c_discr' is missing for 'Doctrine\Tests\Models\Company\CompanyFixContract' using the DQL alias 'c'.
|
* @expectedExceptionMessage The meta mapping for the discriminator column "c_discr" is missing for "Doctrine\Tests\Models\Company\CompanyFixContract" using the DQL alias "c".
|
||||||
*/
|
*/
|
||||||
public function testMissingMetaMappingException()
|
public function testMissingMetaMappingException()
|
||||||
{
|
{
|
||||||
@ -1897,7 +1897,7 @@ class ObjectHydratorTest extends HydrationTestCase
|
|||||||
* @group DDC-1470
|
* @group DDC-1470
|
||||||
*
|
*
|
||||||
* @expectedException \Doctrine\ORM\Internal\Hydration\HydrationException
|
* @expectedException \Doctrine\ORM\Internal\Hydration\HydrationException
|
||||||
* @expectedExceptionMessage The discriminator column 'discr' is missing for 'Doctrine\Tests\Models\Company\CompanyEmployee' using the DQL alias 'e'.
|
* @expectedExceptionMessage The discriminator column "discr" is missing for "Doctrine\Tests\Models\Company\CompanyEmployee" using the DQL alias "e".
|
||||||
*/
|
*/
|
||||||
public function testMissingDiscriminatorColumnException()
|
public function testMissingDiscriminatorColumnException()
|
||||||
{
|
{
|
||||||
|
@ -13,7 +13,7 @@ class SimpleObjectHydratorTest extends HydrationTestCase
|
|||||||
* @group DDC-1470
|
* @group DDC-1470
|
||||||
*
|
*
|
||||||
* @expectedException \Doctrine\ORM\Internal\Hydration\HydrationException
|
* @expectedException \Doctrine\ORM\Internal\Hydration\HydrationException
|
||||||
* @expectedExceptionMessage The discriminator column 'discr' is missing for 'Doctrine\Tests\Models\Company\CompanyPerson' using the DQL alias 'p'.
|
* @expectedExceptionMessage The discriminator column "discr" is missing for "Doctrine\Tests\Models\Company\CompanyPerson" using the DQL alias "p".
|
||||||
*/
|
*/
|
||||||
public function testMissingDiscriminatorColumnException()
|
public function testMissingDiscriminatorColumnException()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user