function getReference( $table, $name ) {

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

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

        }

        return $name . '_id';

    }
function getReference( $table, $name ) {

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

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

        }

        return $name . '_id';

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

"How would $table reference another table under $name?"

Convention is "$name_id"

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