<?php
namespace Model\Database\ORM;

use Model\Database\Model\TableReferenceInstance;

class Manager {
	static function getModel(TableReferenceInstance $table, $data = true){
		//cached
		$model = Cache::Get($table);
		if($model) return $model;
		
		$model = new Model($table);
		
		if($data)
			$model = $model->toModelData();
		
		return $model;
	}
}
<?php
namespace Model\Database\ORM;

use Model\Database\Model\TableReferenceInstance;

class Manager {
	static function getModel(TableReferenceInstance $table){
		//cached
		$model = Cache::Get($table);
		if($model) return $model;
		
		$model = new Model($table);
		return $model;
	}
}
--- 
+++ 
@@ -4,12 +4,16 @@
 use Model\Database\Model\TableReferenceInstance;
 
 class Manager {
-	static function getModel(TableReferenceInstance $table){
+	static function getModel(TableReferenceInstance $table, $data = true){
 		//cached
 		$model = Cache::Get($table);
 		if($model) return $model;
 		
 		$model = new Model($table);
+		
+		if($data)
+			$model = $model->toModelData();
+		
 		return $model;
 	}
 }
Fix bug with the comparison of the first object of each model (ORM
related).