src/Codegen/CodegenBase.php
public static function modelConnectorPropertyName(ColumnInterface $objColumn)
    {
        if ($objColumn instanceof SqlColumn) {
            if ($objColumn->Reference) {
                return $objColumn->Reference->PropertyName;
            } else {
                return $objColumn->PropertyName;
            }
        } elseif ($objColumn instanceof ReverseReference) {
            if ($objColumn->Unique) {
                return ($objColumn->ObjectDescription);
            } else {
                return ($objColumn->ObjectDescriptionPlural);
            }
        } elseif ($objColumn instanceof ManyToManyReference) {
            return $objColumn->ObjectDescriptionPlural;
        } else {
            throw new \Exception ('Unknown column type.');
        }
    }
public static function modelConnectorPropertyName(ColumnInterface $objColumn)
    {
        if ($objColumn instanceof SqlColumn) {
            if ($objColumn->Reference) {
                return $objColumn->Reference->PropertyName;
            } else {
                return $objColumn->PropertyName;
            }
        } elseif ($objColumn instanceof ReverseReference) {
            if ($objColumn->Unique) {
                return ($objColumn->ObjectDescription);
            } else {
                return ($objColumn->ObjectDescriptionPlural);
            }
        } elseif ($objColumn instanceof ManyToManyReference) {
            return $objColumn->ObjectDescriptionPlural;
        } else {
            throw new \Exception ('Unknown column type.');
        }
    }
public static function modelConnectorPropertyName ( ColumnInterface $ objColumn ) { if ( $ objColumn instanceof SqlColumn ) { if ( $ objColumn -> Reference ) { return $ objColumn -> Reference -> PropertyName ; } else { return $ objColumn -> PropertyName ; } } elseif ( $ objColumn instanceof ReverseReference ) { if ( $ objColumn -> Unique ) { return ( $ objColumn -> ObjectDescription ) ; } else { return ( $ objColumn -> ObjectDescriptionPlural ) ; } } elseif ( $ objColumn instanceof ManyToManyReference ) { return $ objColumn -> ObjectDescriptionPlural ; } else { throw new \ Exception ( 'Unknown column type.' ) ; } }
The property name used in the ModelConnector for the given column, virtual column or table

@param ColumnInterface $objColumn

@return string
@throws \Exception
The property name used in the ModelConnector for the given column virtual column or table