Jump to content

AtkManyToOneRelation: Difference between revisions

From NusaATK
No edit summary
 
No edit summary
Line 1: Line 1:
#REDIRECT [[ATK_Relations#atkManyToOneRelation]]
== atkManyToOneRelation ==
function atkManyToOneRelation($name, $destination, $flags=0)
 
* $name The name of the attribute.
* $destination The node we have a relationship with.
 
 
'''Example'''
 
Projects all have one coordinator (node B), but one coordinator can have multiple projects (node A). So in the project class, there's a atkManyToOneRelation to a coordinator.
 
[[image:atkManyToOne.jpg|center]]
 
[[Category:Relations]]

Revision as of 10:08, 28 December 2006

atkManyToOneRelation

function atkManyToOneRelation($name, $destination, $flags=0)
  • $name The name of the attribute.
  • $destination The node we have a relationship with.


Example

Projects all have one coordinator (node B), but one coordinator can have multiple projects (node A). So in the project class, there's a atkManyToOneRelation to a coordinator.