Skip to content

Commit

Permalink
修正optimize:model指令
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Apr 22, 2019
1 parent dc94b0a commit 68b4916
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/think/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*/
class App extends Container
{
const VERSION = '6.0.0RC1';
const VERSION = '6.0.0RC2';

/**
* 应用调试模式
Expand Down
2 changes: 1 addition & 1 deletion src/think/console/command/optimize/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ protected function buildModel($namespace, $model)
$comment = $reflect->getDocComment();

if (false !== strpos($comment, '@mixin think\Model') && false === strpos($comment, '@property ')) {
$fieldType = $class::getFieldType();
$fieldType = $class::getFieldsType();
$item[] = '@mixin think\Model';
foreach ($fieldType as $field => $type) {
$type = $this->parseFieldType($type);
Expand Down

0 comments on commit 68b4916

Please sign in to comment.