Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | namespace Doctrine\ORM\Internal\Hydration; |
---|
4 | |
---|
5 | class 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.