lithium\data\Model::object()

public static method

Retrieves a configured and initialized instance of the class.

Returns

\lithium\data\Model

An 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;
	}