Active
Project:
Orm
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Jan 2010 at 05:17 UTC
Updated:
18 Jan 2010 at 23:47 UTC
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
Comment #1
brendoncrawford commentedLiorm,
Thanks... I will fix this soon.