public function writeOut(OutputInterface $output = null, $force = false)
    {
        $class = str_singular($this->getClass());

        $this->writeToFileFromTemplate($this->path . '/' . $class . '.php', 'model', $output, [
            'namespace'       => $this->namespace,
            'className'       => $class,
            'tableName'       => snake_case($this->table->getTableName()),
            'relationMethods' => $this->table->renderRelationMethods(),
        ], $force);
    }
public function writeOut(OutputInterface $output = null, $force = false)
    {
        $class = str_singular($this->getClass());

        $this->writeToFileFromTemplate($this->path . '/' . $class . '.php', 'model', $output, [
            'namespace'       => $this->namespace,
            'className'       => $class,
            'tableName'       => snake_case($this->table->getTableName()),
            'relationMethods' => $this->table->renderRelationMethods(),
        ], $force);
    }
public function writeOut ( OutputInterface $ output = null , $ force = false ) { $ class = str_singular ( $ this -> getClass ( ) ) ; $ this -> writeToFileFromTemplate ( $ this -> path . '/' . $ class . '.php' , 'model' , $ output , [ 'namespace' => $ this -> namespace , 'className' => $ class , 'tableName' => snake_case ( $ this -> table -> getTableName ( ) ) , 'relationMethods' => $ this -> table -> renderRelationMethods ( ) , ] , $ force ) ; }
Render model class and write out to file

@param \Symfony\Component\Console\Output\OutputInterface|null $output command line output
@param bool                                                   $force  force overwrite existing models or not
Render model class and write out to file