When running php sw.phar plugin:create --haveBackend --haveModels "Foobar" I will get a request to specify the main model name. Entering something like "Bar" creates a model with following file name:
'plugin:create' --haveBackend --haveModels Foobar.php instead of just Bar.php.
Same goes for the Classname and the database table itself.
References for the model in the backend controller are broken too.
Leaving out the backend solves the problem.
It seems that this is related to #108 which had a similar problem.