I’m getting a strange error while trying to submit a form, this form has worked in the past and hasn’t been changed.
Any ideas??
Property "Lead.name" is read only.
133 * PHP setter magic method.
134 * This method is overridden so that AR attributes can be accessed like properties.
135 * @param string $name property name
136 * @param mixed $value property value
137 */
138 public function __set($name,$value)
139 {
140 if($this->setAttribute($name,$value)===false)
141 {
142 if(isset($this->getMetaData()->relations[$name]))
143 $this->_related[$name]=$value;
144 else
145 parent::__set($name,$value);
146 }
147 }
148
149 /**
150 * Checks if a property value is null.
151 * This method overrides the parent implementation by checking
152 * if the named attribute is null or not.
153 * @param string $name the property name or the event name
154 * @return boolean whether the property value is null
155 * @since 1.0.1
156 */
157 public function __isset($name)