Minor internal fixes

This commit is contained in:
Deon George
2014-10-22 11:18:56 +11:00
parent f7567dc250
commit db7f5f8d55
6 changed files with 9 additions and 5 deletions

View File

@@ -333,6 +333,10 @@ abstract class lnApp_ORM extends Kohana_ORM {
return $this->_sub_items;
}
public function subitem_add(Model $item) {
array_push($this->_sub_items,$item);
}
/**
* Override the Kohana processing so we can null values if required.
* We override this function, because we do set our own primary key value