src/Aggregator/AbstractAggregator.php
public function validate() : bool
    {
        $table = $this->getConfig()->getTable();
        foreach ([$this->config->getField(), $this->config->getDisplayField()] as $field) {
            if ($table->getSchema()->hasColumn($field)) {
                continue;
            }

            $this->errors[] = sprintf('Unknown column "%s" for table "%s"', $field, $table->getAlias());
        }

        return empty($this->errors);
    }
public function validate() : bool
    {
        $table = $this->getConfig()->getTable();
        foreach ([$this->config->getField(), $this->config->getDisplayField()] as $field) {
            if ($table->getSchema()->hasColumn($field)) {
                continue;
            }

            $this->errors[] = sprintf('Unknown column "%s" for table "%s"', $field, $table->getAlias());
        }

        return empty($this->errors);
    }
public function validate ( ) : bool { $ table = $ this -> getConfig ( ) -> getTable ( ) ; foreach ( [ $ this -> config -> getField ( ) , $ this -> config -> getDisplayField ( ) ] as $ field ) { if ( $ table -> getSchema ( ) -> hasColumn ( $ field ) ) { continue ; } $ this -> errors [ ] = sprintf ( 'Unknown column "%s" for table "%s"' , $ field , $ table -> getAlias ( ) ) ; } return empty ( $ this -> errors ) ; }
Validator method.

Checks for column existance.

@return bool
Validator method .