destination_id (PK)
destination_parent_id (FK ??? as it must take a value from
destination_id)
destination_name
destination_description
Cheers
Lumsden
i.e a child class in POG cannot have a parent equal to itself and vice-
versa, although, I know Mark and I were talking about a simple and
elegant workaround he came up with while working on a project... He
may elaborate if he finds a minute or two.
But the short answer, from the generator's point of view, is no.
Cheers
Lumsden
<--snip-->
Hi Joel
yes - it is kind of simple...
objectA
-objectaId
-name
-MyParentObjectAId
when you need all the children:
$children = $objectA->GetList("MyParentObjectAId","=",$this-
>objectaId);
when you need the parent:
$parent = $objectA->-MyParentObjectAId;
that's it.
-Mark
<--snip-->
instead of:
$parent = $objectA->-MyParentObjectAId;
Unless you reply, I will assume that minus sign before
MyParentObjectAId is just a typo.
Cheers
Lumsden
Cheers
Lumsden
$parent = $objectA->Get($objectA->MyParentObjectAId);
I missed the getting of the actual object... Sorry about that -
-Mark