Skip to content

Commit

Permalink
Hardcoding the entity type since laravel choice method is broken
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Jul 17, 2015
1 parent 18de525 commit ee25bd3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Console/ModuleScaffoldCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ public function fire()
*/
private function askForEntities()
{
$this->entityType = $this->choice('Do you want to use Eloquent or Doctrine ?', ['Eloquent', 'Doctrine'], 0);
// $this->entityType = $this->choice('Do you want to use Eloquent or Doctrine ?', ['Eloquent','Doctrine'], 0); # this->choice broken in laravel
$this->entityType = 'Eloquent';
do {
$entity = $this->ask('Enter entity name. Leaving option empty will continue script.', '<none>');
if (!empty($entity) && $entity !== '<none>') {
Expand Down

0 comments on commit ee25bd3

Please sign in to comment.