lithium\data\Model::object()
Retrieves a configured and initialized instance of the class.
Returns
\lithium\data\ModelAn instance of the class.
Source
public static function &object() {
$class = get_called_class();
if (!isset(static::$_instances[$class])) {
static::$_instances[$class] = new $class();
static::config();
}
$object = static::_initialize($class);
return $object;
}