Skip to content
Snippets Groups Projects
Commit c2b01c58 authored by clement's avatar clement
Browse files

c

parent d6078d84
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,7 @@ class Objet
$ret = array();
foreach(array_keys(get_object_vars($this)) as $keyName) {
if($keyName[0] == "_") { continue; }
if($keyName == $this->_primaryAttr) { $ret[] = new Field($keyName, $this->$keyName, true); continue; }
if($keyName == $this->_primaryAttr && $this->_primaryAttr == "id") { $ret[] = new Field($keyName, $this->$keyName, true); continue; }
if(in_array($keyName, array_keys($this->_specialFields))) {
$ret[] = new $this->_specialFields[$keyName]["t"]($keyName, $this->$keyName);
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment