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

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

        $relations = $this->manager->getRelations($model);
        $tbody = [];

        foreach ($relations as $relation) {
            $relationName = $this->manager->getClassName($relation);
            $related = $relation->getRelated() ?:null;

            $tbody[] = [
                $this->paintString($relationName, 'brown'),
                $related ? $this->manager->getClassName($related) : '',
            ];
        }

        $this->table(['relation', 'model'], $tbody);
    }
protected function showRelatoins(Model $model)
    {
        $name = $this->manager->getClassName($model);

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

        $relations = $this->manager->getRelations($model);
        $tbody = [];

        foreach ($relations as $relation) {
            $relationName = $this->manager->getClassName($relation);
            $related = $relation->getRelated() ?:null;

            $tbody[] = [
                $this->paintString($relationName, 'brown'),
                $related ? $this->manager->getClassName($related) : '',
            ];
        }

        $this->table(['relation', 'model'], $tbody);
    }
protected function showRelatoins ( Model $ model ) { $ name = $ this -> manager -> getClassName ( $ model ) ; $ this -> title ( "Relations of Model {$name}: " ) ; $ relations = $ this -> manager -> getRelations ( $ model ) ; $ tbody = [ ] ; foreach ( $ relations as $ relation ) { $ relationName = $ this -> manager -> getClassName ( $ relation ) ; $ related = $ relation -> getRelated ( ) ? : null ; $ tbody [ ] = [ $ this -> paintString ( $ relationName , 'brown' ) , $ related ? $ this -> manager -> getClassName ( $ related ) : '' , ] ; } $ this -> table ( [ 'relation' , 'model' ] , $ tbody ) ; }
show relations of model

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