Hello.

i have 2 models.

Items belongsTo Order

Item has a virtualField defined as "CONCAT(Order.code, '-',
REPEAT('0', 3 - LENGTH(Item.id)), Item.id)"

this setup is giving me a lot of errors during finds from Item model.
Some examples:

$this->Item->hasAny("color" => "red")   gives me "unknown column
'Order.code' "
$this->Item->find("all", array("contain" => false));  gives me the
same error as above

it looks like cake is using virtual fields everywhere.

shouldn't cake ignore, in some cases, those virtual fields?

PS: sry for bad eng

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to