Skip to content
This repository was archived by the owner on Jan 4, 2020. It is now read-only.
This repository was archived by the owner on Jan 4, 2020. It is now read-only.

Cascade deletion (composite relation) #8

Description

@bcogrel

In Cubic Web, this information is given by the attribute "composite" of a RelationDefinition : http://docs.cubicweb.org/tutorials/base/customizing-the-application.html?highlight=delete#defining-our-model

For instance:

class community_blog(RelationDefinition):
    subject = 'Community'
    object = 'Blog'
    cardinality = '*?'
    composite = 'subject'

When a community (subject) is deleted, its blogs also are.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions