1
0
mirror of synced 2025-01-18 14:31:40 +03:00
doctrine2/lib/Doctrine/ORM/ORMException.php

17 lines
368 B
PHP
Raw Normal View History

<?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");
}
}