I'm trying to search, from a php-filtered node:
<?php

$guid = 'pla_d9674436-9511-41b8-8c87-ce2962afcf22';
$nodes = orm('Videoclip')->find(array(
'Videoclip.field_guid' => $guid ));
>

videoclip is a type I added, and has the field guid

but:
i get an SQL error. seems the WHERE clause is not built propery. to fix, you need to change orm_finder.php, line 160 to:
elseif ($schemaInst->isCCK($table, $field)) {
$tableRaw = $table;
$table = $this->buildCckTableRef($fieldParts);

$tableType = self::TABLE_TYPE_CCK;
$field = $schemaInst->getCCKCode($tableRaw, $field);

}
thanks
Lior

Comments

brendoncrawford’s picture

Liorm,

Thanks... I will fix this soon.