src/Utility/Validate/Utility.php
public static function getRealRelationFields(string $module) : array
    {
        $relation = [];

        $table = TableRegistry::getTableLocator()->get($module);
        foreach ($table->associations() as $association) {
            $relation[] = $association->getName();
        }

        return $relation;
    }
public static function getRealRelationFields(string $module) : array
    {
        $relation = [];

        $table = TableRegistry::getTableLocator()->get($module);
        foreach ($table->associations() as $association) {
            $relation[] = $association->getName();
        }

        return $relation;
    }
public static function getRealRelationFields ( string $ module ) : array { $ relation = [ ] ; $ table = TableRegistry :: getTableLocator ( ) -> get ( $ module ) ; foreach ( $ table -> associations ( ) as $ association ) { $ relation [ ] = $ association -> getName ( ) ; } return $ relation ; }
Returns a list of relation fields.

@param string $module Module name.
@return string[] List of relation fields.
Returns a list of relation fields .