source: pro-violet-viettel/sourcecode/application/libraries/Doctrine/ORM/Internal/Hydration/HydrationException.php @ 345

Last change on this file since 345 was 345, checked in by quyenla, 11 years ago

collaborator page

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