17 lines
368 B
PHP
17 lines
368 B
PHP
<?php
|
|
|
|
namespace Doctrine\ORM;
|
|
|
|
class ORMException extends \Exception
|
|
{
|
|
public static function entityMissingAssignedId($entity)
|
|
{
|
|
return new self("Entity of type " . get_class($entity) . " is missing an assigned ID.");
|
|
}
|
|
|
|
public static function unrecognizedField($field)
|
|
{
|
|
return new self("Unrecognized field: $field");
|
|
}
|
|
}
|