public function getColumnValues($columnName = 'PrimaryKey')
    {
        $ret = [];
        $keyGetterMethod = 'get' . ucfirst($columnName);
        foreach ($this as $obj) {
            $ret[] = $obj->$keyGetterMethod();
        }

        return $ret;
    }
public function getColumnValues($columnName = 'PrimaryKey')
    {
        $ret = [];
        $keyGetterMethod = 'get' . ucfirst($columnName);
        foreach ($this as $obj) {
            $ret[] = $obj->$keyGetterMethod();
        }

        return $ret;
    }
public function getColumnValues ( $ columnName = 'PrimaryKey' ) { $ ret = [ ] ; $ keyGetterMethod = 'get' . ucfirst ( $ columnName ) ; foreach ( $ this as $ obj ) { $ ret [ ] = $ obj -> $ keyGetterMethod ( ) ; } return $ ret ; }
Get an array representation of the column.

<code>
$res = $userCollection->toKeyIndex('Name');

$res = array(
'peter',
'hans',
...
)
</code>

@param string $columnName

@return array
Get an array representation of the column .