. */ /** * Doctrine_Validator_Readonly * * @package Doctrine * @subpackage Validator * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.phpdoctrine.org * @author Adam Huttler */ class Doctrine_Validator_Readonly { /** * checks if value has been modified * * @param mixed $value * @return boolean */ public function validate($value) { $modified = $this->invoker->getModified(); return array_key_exists($this->field, $modified) ? false : true; } }