ORM $_persistentTable is now static to allow reuse across model objects
/trunk/AbstractModel.php |
---|
48,10 → 48,10 |
public function __get ($name) |
{ |
/* Support for Object-Relational Mappers */ |
// if (strpos($name, 'persistent') === 0) |
// if (strpos($name, 'persistent') === 0) |
// { |
// $class = get_class($this); |
// return $class::${$name}; |
// $class = get_class($this); |
// return $class::${"_" . $name}; |
// } |
$method = 'get' . ucfirst($name); |