_identifier()) { throw new Doctrine_Exception("Entity '$entity' is missing an assigned Id"); } return $entity->_identifier(); } } ?>