dtolabs / yana2

Yet Another Node Authority ... because you wanted an agile Real-Time Service Model (RTSM)
8 stars 1 forks source link

Default a ChildNode's relationshipname to corresponding rolename #122

Closed ahonor closed 12 years ago

ahonor commented 12 years ago

If a user does not specify a relationship name for a ChildNode, default to the rolename of the corresponding NodeTypeRelationship.

For example:

1) Given a NodeTypeRelationship named packages defined like so:

2) Given two instances of the types specified above:

3) Creating a ChildNode between the two above objects without specifying a relationship name, it should default to the role name (i.e, packages).

orubel commented 12 years ago

ok so, I think this is taken care of then. It updates on created of node when one picks parent/child (hence no relationship name CAN be given) and on update of node when new childnode is created as well but not when existing childnode is updated