Skip to content

Commit

Permalink
Merge pull request #61 from DeivaLiang/patch-6
Browse files Browse the repository at this point in the history
增加--instance参数,写入Entity(instance="xxx")
  • Loading branch information
stelin committed May 7, 2018
2 parents afc4f0d + f1fb985 commit 8267853
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Entity/Stub/Model.stub
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<?php

namespace {{namespace}};

{{uses}}
/**
{{entityName}}
* @Entity()
* @Entity({{instance}})
* @Table(name="{{entity}}")
* @uses {{entityClass}}
* @version {{entityDate}}
*/
class {{entityClass}} extends {{extends}}
{{{property}}{{setter}}{{getter}}
Expand Down

0 comments on commit 8267853

Please sign in to comment.