public static function getFullColumnName($column, $table = null)
    {
        // Get target table name
        if ($table === null) {
            // Make sure, the getTableName() is defined in calling class
            if (method_exists(get_called_class(), 'getTableName')) {
                $table = static::getTableName();
            } else {
                throw new LogicException(
                    sprintf('The method getTableName() is not declared in %s, therefore a full column name cannot be generated', get_called_class())
                );
            }
        }

        return sprintf('%s.%s', $table, $column);
    }
public static function getFullColumnName($column, $table = null)
    {
        // Get target table name
        if ($table === null) {
            // Make sure, the getTableName() is defined in calling class
            if (method_exists(get_called_class(), 'getTableName')) {
                $table = static::getTableName();
            } else {
                throw new LogicException(
                    sprintf('The method getTableName() is not declared in %s, therefore a full column name cannot be generated', get_called_class())
                );
            }
        }

        return sprintf('%s.%s', $table, $column);
    }
public static function getFullColumnName ( $ column , $ table = null ) { // Get target table name if ( $ table === null ) { // Make sure, the getTableName() is defined in calling class if ( method_exists ( get_called_class ( ) , 'getTableName' ) ) { $ table = static :: getTableName ( ) ; } else { throw new LogicException ( sprintf ( 'The method getTableName() is not declared in %s, therefore a full column name cannot be generated' , get_called_class ( ) ) ) ; } } return sprintf ( '%s.%s' , $ table , $ column ) ; }
Returns full column name prepending table name

@param string $column Column name
@param string $table Table name. By default getTableName() is called
@throws \LogicException if the getTableName() isn't defined in descending class
@return string
Returns full column name prepending table name