HydrationException.php 879 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace Doctrine\ORM\Internal\Hydration;
  3. class HydrationException extends \Doctrine\ORM\ORMException
  4. {
  5. public static function nonUniqueResult()
  6. {
  7. return new self("The result returned by the query was not unique.");
  8. }
  9. public static function parentObjectOfRelationNotFound($alias, $parentAlias)
  10. {
  11. return new self("The parent object of entity result with alias '$alias' was not found."
  12. . " The parent alias is '$parentAlias'.");
  13. }
  14. public static function emptyDiscriminatorValue($dqlAlias)
  15. {
  16. return new self("The DQL alias '" . $dqlAlias . "' contains an entity ".
  17. "of an inheritance hierachy with an empty discriminator value. This means " .
  18. "that the database contains inconsistent data with an empty " .
  19. "discriminator value in a table row."
  20. );
  21. }
  22. }