Permalink
Browse files

add $dirty variable to know whether the data is dirty and add static …

…$collection
  • Loading branch information...
1 parent c74202a commit a1196e3534f5bae85cbc6f396a51dd6d63b22045 @jrschumacher committed Feb 9, 2012
Showing with 13 additions and 1 deletion.
  1. +13 −1 lib/BaseMongoRecord.php
View
@@ -50,6 +50,18 @@
private $new = TRUE;
/**
+ * @uses if data has changed
+ * @var BOOL
+ */
+ private $dirty = FALSE;
+
+ /**
+ *
+ *
+ */
+ protected static $collection = NULL;
+
+ /**
*
*/
private static $event_callbacks = array();
@@ -477,6 +489,6 @@ protected function isValid() {
}
return TRUE;
- }
+ }
}

0 comments on commit a1196e3

Please sign in to comment.