function getBackReference( $table, $name ) {

        if ( isset( $this->backReferences[ $table ][ $name ] ) ) {

            return $this->backReferences[ $table ][ $name ];

        }

        return $table . '_id';

    }
function getBackReference( $table, $name ) {

        if ( isset( $this->backReferences[ $table ][ $name ] ) ) {

            return $this->backReferences[ $table ][ $name ];

        }

        return $table . '_id';

    }
function getBackReference ( $ table , $ name ) { if ( isset ( $ this -> backReferences [ $ table ] [ $ name ] ) ) { return $ this -> backReferences [ $ table ] [ $ name ] ; } return $ table . '_id' ; }
Get a back reference key for an association on a table

"How would $table be referenced by another table under $name?"

Convention is "$table_id"

@param string $table
@param string $name
@return string
Get a back reference key for an association on a table