src/ORM/DataList.php
public function newObject($initialFields = null)
    {
        $class = $this->dataClass;
        return Injector::inst()->create($class, $initialFields, false);
    }
public function newObject($initialFields = null)
    {
        $class = $this->dataClass;
        return Injector::inst()->create($class, $initialFields, false);
    }
public function newObject ( $ initialFields = null ) { $ class = $ this -> dataClass ; return Injector :: inst ( ) -> create ( $ class , $ initialFields , false ) ; }
Return a new item to add to this DataList.

@todo This doesn't factor in filters.
@param array $initialFields
@return DataObject
Return a new item to add to this DataList .