private function createModelFile(\stdClass $oModel, string $sTemplate): self
    {
        $this->oOutput->write('Creating model <comment>' . $oModel->class_path . '</comment>... ');
        $this->createPath($oModel->path);
        $this->createFile(
            $oModel->path . $oModel->filename,
            $this->getResource('template/' . $sTemplate . '.php', (array) $oModel)
        );
        $this->oOutput->writeln('<info>done!</info>');

        return $this;
    }