private function isTableRelation($metadata, $association)
    {
        foreach ($metadata->fieldMappings as $fieldMapping) {
            if ($fieldMapping['fieldName'] === $association) {
                return false;
            }
        }

        return true;
    }
private function isTableRelation($metadata, $association)
    {
        foreach ($metadata->fieldMappings as $fieldMapping) {
            if ($fieldMapping['fieldName'] === $association) {
                return false;
            }
        }

        return true;
    }
private function isTableRelation ( $ metadata , $ association ) { foreach ( $ metadata -> fieldMappings as $ fieldMapping ) { if ( $ fieldMapping [ 'fieldName' ] === $ association ) { return false ; } } return true ; }
Checks if the association is between two tables returning true,
otherwise, returns false if associations is based on inheritance.

@param ClassMetadata $metadata    The class metadata
@param string        $association The association field name

@return bool
Checks if the association is between two tables returning true otherwise returns false if associations is based on inheritance .