src/Flipbox/OrmManager/Consoles/ModelDetail.php
protected function showDetail(Model $model)
    {
        $name = $this->manager->getClassName($model);

        $this->title("Summary of Model {$name} :");

        $summary = $this->manager->getModelSummary($name);
        $rows = [];

        foreach ($summary as $key => $value) {
            if (is_bool($value)) {
                $value = $value ? 'yes' : 'no';
            }

            $valueText = $this->paintString($value, 'brown');

            $rows[] = [$key, $valueText];
        }

        $this->table(['Key', 'Value'], $rows);

        $this->showDatabaseFields($model);
        $this->showRelatoins($model);
        $this->showModifier($model);
    }
protected function showDetail(Model $model)
    {
        $name = $this->manager->getClassName($model);

        $this->title("Summary of Model {$name} :");

        $summary = $this->manager->getModelSummary($name);
        $rows = [];

        foreach ($summary as $key => $value) {
            if (is_bool($value)) {
                $value = $value ? 'yes' : 'no';
            }

            $valueText = $this->paintString($value, 'brown');

            $rows[] = [$key, $valueText];
        }

        $this->table(['Key', 'Value'], $rows);

        $this->showDatabaseFields($model);
        $this->showRelatoins($model);
        $this->showModifier($model);
    }
protected function showDetail ( Model $ model ) { $ name = $ this -> manager -> getClassName ( $ model ) ; $ this -> title ( "Summary of Model {$name} :" ) ; $ summary = $ this -> manager -> getModelSummary ( $ name ) ; $ rows = [ ] ; foreach ( $ summary as $ key => $ value ) { if ( is_bool ( $ value ) ) { $ value = $ value ? 'yes' : 'no' ; } $ valueText = $ this -> paintString ( $ value , 'brown' ) ; $ rows [ ] = [ $ key , $ valueText ] ; } $ this -> table ( [ 'Key' , 'Value' ] , $ rows ) ; $ this -> showDatabaseFields ( $ model ) ; $ this -> showRelatoins ( $ model ) ; $ this -> showModifier ( $ model ) ; }
show detail of model

@param Model $model
@return void
show detail of model