src/Utility/Validate/Check/ViewsCheck.php
protected function validateAssociation(string $associationValue, string $module, string $view): void
    {
        $table = TableRegistry::getTableLocator()->get($module);
        if (!$table->hasAssociation($associationValue)) {
            $this->errors[] = sprintf(
                '%s module [%s] view reference ASSOCIATION column with unknown association "%s"',
                $module,
                $view,
                $associationValue
            );
        }
    }
protected function validateAssociation(string $associationValue, string $module, string $view): void
    {
        $table = TableRegistry::getTableLocator()->get($module);
        if (!$table->hasAssociation($associationValue)) {
            $this->errors[] = sprintf(
                '%s module [%s] view reference ASSOCIATION column with unknown association "%s"',
                $module,
                $view,
                $associationValue
            );
        }
    }
protected function validateAssociation ( string $ associationValue , string $ module , string $ view ) : void { $ table = TableRegistry :: getTableLocator ( ) -> get ( $ module ) ; if ( ! $ table -> hasAssociation ( $ associationValue ) ) { $ this -> errors [ ] = sprintf ( '%s module [%s] view reference ASSOCIATION column with unknown association "%s"' , $ module , $ view , $ associationValue ) ; } }
Validates values enclosed in ASSOCIATION

@param string $associationValue Value enclosed by ASSOCIATION(...)
@param string $module Module's name
@param string $view View's name
@return void
Validates values enclosed in ASSOCIATION