private function processCreateModel($name, $fields)
    {
        // name:type:limit:null:unique
        foreach ($fields as $fieldDefinition) {
            $fieldDefinition = explode(':', $fieldDefinition);
            $this->modelService->processCommand('addColumn', ...$fieldDefinition);
        }

        $this->modelService->create($name);
    }
private function processCreateModel($name, $fields)
    {
        // name:type:limit:null:unique
        foreach ($fields as $fieldDefinition) {
            $fieldDefinition = explode(':', $fieldDefinition);
            $this->modelService->processCommand('addColumn', ...$fieldDefinition);
        }

        $this->modelService->create($name);
    }
private function processCreateModel ( $ name , $ fields ) { // name:type:limit:null:unique foreach ( $ fields as $ fieldDefinition ) { $ fieldDefinition = explode ( ':' , $ fieldDefinition ) ; $ this -> modelService -> processCommand ( 'addColumn' , ... $ fieldDefinition ) ; } $ this -> modelService -> create ( $ name ) ; }
Process the fields to create the model!

@param mixed $name
@param array $fields colon seperated field definitions

@return void
Process the fields to create the model!