Hi,
I have set up a virtual foreign key via codegen_settings.xml like this:
<relationships><![CDATA[
cart_order_details.order_id => cart_orders.id
transaction.order_id =>cart_orders.id
]]></relationships>
The classes are created, but how can I access the related class objects like the following?
<?php
$objTransaction = Transaction::Load(1);
echo $objTransaction->CartOrders->CustomerFirstName;
die();
?>
This doesn't work, but if I define my foreign key as an SQL statement using InnoDB, that code works just fine. Am I not able to access data like this if I use a Virtual Foreign Key?
This is the first time I've used Virtual Foreign Key's so if anyone has info on this or has used this before and can help me, I would appreciate it.
Thanks much,
Chris