. */ /** * Doctrine_Hydrator_Exception * * @package Doctrine * @subpackage Hydrate * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.phpdoctrine.org * @since 1.0 * @version $Revision: 1080 $ * @author Konsta Vesterinen */ class Doctrine_Hydrator_Exception extends Doctrine_Exception { public static function nonUniqueKeyMapping() { return new self("Hydration failed. Found non-unique key mapping."); } public static function nonExistantFieldUsedAsIndex($field) { return new self("Hydration failed. Found a non-existent field '$field'."); } public static function nonUniqueResult() { return new self("Hydration failed. Non-unique result returned."); } }