1
0
mirror of synced 2024-12-13 14:56:01 +03:00
doctrine2/lib/Doctrine/ORM/Id/Assigned.php
2008-09-12 10:40:23 +00:00

25 lines
534 B
PHP

<?php
/**
* Special generator for application-assigned identifiers (doesnt really generate anything).
*
* @since 2.0
*/
class Doctrine_ORM_Id_Assigned extends Doctrine_ORM_Id_AbstractIdGenerator
{
/**
* Enter description here...
*
* @param Doctrine_ORM_Entity $entity
* @return unknown
* @override
*/
public function generate(Doctrine_ORM_Entity $entity)
{
if ( ! $entity->_identifier()) {
throw Doctrine_IdException::missingAssignedId($entity);
}
}
}
?>