src/Label305/AujaLaravel/Config/AujaConfigurator.php
private function findSimpleRelations(Model $model) {
        //$this->app['log']->debug(sprintf('Finding relations for %s', $model->getName()));
        foreach ($model->getColumns() as $column) {
            if (ends_with($column->getName(), self::ID_SUFFIX)) {
                $this->defineRelation($model, $column->getName());
            }
        }
    }
private function findSimpleRelations(Model $model) {
        //$this->app['log']->debug(sprintf('Finding relations for %s', $model->getName()));
        foreach ($model->getColumns() as $column) {
            if (ends_with($column->getName(), self::ID_SUFFIX)) {
                $this->defineRelation($model, $column->getName());
            }
        }
    }
private function findSimpleRelations ( Model $ model ) { //$this->app['log']->debug(sprintf('Finding relations for %s', $model->getName())); foreach ( $ model -> getColumns ( ) as $ column ) { if ( ends_with ( $ column -> getName ( ) , self :: ID_SUFFIX ) ) { $ this -> defineRelation ( $ model , $ column -> getName ( ) ) ; } } }
Finds and defines one-to-one and one-to-many relations for given model.

@param $model Model the Model to find the relations for.
Finds and defines one - to - one and one - to - many relations for given model .