src/Label305/AujaLaravel/Config/AujaConfigurator.php
private function findColumns(Model $model) {
        //$this->app['log']->debug('Finding columns for model ' . $model->getName());
        $tableName = $this->getTableName($model);

        if (!$this->databaseRepository->hasTable($tableName)) {
            throw new \InvalidArgumentException(sprintf('Table %s for %s does not exist!', $tableName, $model->getName()));
        }

        $columns = $this->databaseRepository->getColumnListing($tableName);
        foreach ($columns as $columnName) {
            //$this->app['log']->debug(sprintf('Adding column %s to %s', $columnName, $model->getName()));
            $columnType = $this->databaseRepository->getColumnType($tableName, $columnName);
            $model->addColumn(new Column($columnName, $columnType));
        }
    }
private function findColumns(Model $model) {
        //$this->app['log']->debug('Finding columns for model ' . $model->getName());
        $tableName = $this->getTableName($model);

        if (!$this->databaseRepository->hasTable($tableName)) {
            throw new \InvalidArgumentException(sprintf('Table %s for %s does not exist!', $tableName, $model->getName()));
        }

        $columns = $this->databaseRepository->getColumnListing($tableName);
        foreach ($columns as $columnName) {
            //$this->app['log']->debug(sprintf('Adding column %s to %s', $columnName, $model->getName()));
            $columnType = $this->databaseRepository->getColumnType($tableName, $columnName);
            $model->addColumn(new Column($columnName, $columnType));
        }
    }
Finds and configures the `Columns` for given `Model`.

@param Model $model the Model to find the `Columns` for.