projects
/
pear
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eff56d8
)
DB/DataObject.php
author
Alan Knowles
<alan@roojs.com>
Thu, 16 Mar 2017 06:49:29 +0000
(14:49 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 16 Mar 2017 06:49:29 +0000
(14:49 +0800)
DB/DataObject.php
patch
|
blob
|
history
diff --git
a/DB/DataObject.php
b/DB/DataObject.php
index
6075d5f
..
ce36167
100644
(file)
--- a/
DB/DataObject.php
+++ b/
DB/DataObject.php
@@
-291,6
+291,22
@@
class DB_DataObject extends DB_DataObject_Overload
return $this->find(1);
}
+ /**
+ * FC to PDO_DataObjects - load method
+ * It's also usefull to get rid of staticGet
+ *
+ *
+ */
+ function load($k = null, $v = null)
+ {
+ if (!$this->get($k,$v)) {
+ return false;
+ }
+
+ return $this;
+ }
+
+
/**
* Get the value of the primary id
*