|
|
@@ -1497,13 +1497,13 @@ class Model extends Object implements CakeEventListener {
|
|
|
}
|
|
|
return $this->data;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
-* This function is a convenient wrapper class to create(false) and, as the name suggests, clears the id, data, and validation errors.
|
|
|
-*
|
|
|
-* @return always boolean TRUE upon success
|
|
|
-* @see Model::create()
|
|
|
-*/
|
|
|
+ * This function is a convenient wrapper class to create(false) and, as the name suggests, clears the id, data, and validation errors.
|
|
|
+ *
|
|
|
+ * @return always boolean TRUE upon success
|
|
|
+ * @see Model::create()
|
|
|
+ */
|
|
|
public function clear() {
|
|
|
$this->create(false);
|
|
|
return true;
|