I recently switched to PHPCassa to manage db connection in my PHP platform.
This is the code i'm using:
$indexExpression = new IndexExpression("Username", $username);
$indexClause = new IndexClause(array($indexExpression));
$cf = new ColumnFamily($this->cassandra, "Users");
$rows = $cf->get_indexed_slices($indexClause);
The problem is that actually $rows
is not an array containing the data i'd like to fetch but it contains an IndexedColumnFamilyIterator
object.
I'm I doing something wrong?
Thanks for helping.