You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for your php Library, I use and like it. But I have a little problem, I would like to use your example :
"// By pluggable 'Clause'
$c = new PandraColumnFamily();
$c['username'] = 'myuser';
$c['homeAddress'] = ' MY HOUSE ';
$c['phone'] = '987654231';
$c['mobile'] = '011465987';
$c['workAddress'] = ' MY WORK ';
// regex extraction column references ending in 'address'
// (ie: homeAddress and workAddress)
$q = new PandraQuery();
$addresses = $c[$q->Regex('/address$/i')];
foreach ($addresses as $addressColumn) {
echo "QUERIED PATH : ".$addressColumn->value." ";
}"
But I have this error :
"Catchable fatal error: Object of class PandraQuery could not be converted to string in /Pandra/lib/ColumnContainer.class.php on line 779"
Do you know a way to fix this problem ?
Thanks for your answer,
Nicolas
The text was updated successfully, but these errors were encountered:
Hi Nicolas, yes I have a fix for that, Query is a work in progress and doesn't work the same way since the last update. To extract columns from an already loaded column family, you need to instantiate a 'PandraClause' type (lib/query/Clause*.class.php)
Hi M. Pearson,
Thanks for your php Library, I use and like it. But I have a little problem, I would like to use your example :
"// By pluggable 'Clause'
$c = new PandraColumnFamily();
$c['username'] = 'myuser';
$c['homeAddress'] = ' MY HOUSE ';
$c['phone'] = '987654231';
$c['mobile'] = '011465987';
$c['workAddress'] = ' MY WORK ';
// regex extraction column references ending in 'address'
// (ie: homeAddress and workAddress)
$q = new PandraQuery();
$addresses = $c[$q->Regex('/address$/i')];
foreach ($addresses as $addressColumn) {
echo "QUERIED PATH : ".$addressColumn->value."
";
}"
But I have this error :
"Catchable fatal error: Object of class PandraQuery could not be converted to string in /Pandra/lib/ColumnContainer.class.php on line 779"
Do you know a way to fix this problem ?
Thanks for your answer,
Nicolas
The text was updated successfully, but these errors were encountered: