Ticket #790 (closed feature request: fixed)

Opened 1 year ago

Last modified 10 months ago

MgdSchema types should be able to extend each other

Reported by: bergie Assigned to: piotras
Priority: major Milestone: 9.09 Mjolnir
Component: Midgard Core Version: 9.09 Mjolnir
Keywords: Cc:

Description

You should be able to build new MgdSchema? types that extend on existing ones. For instance:

    <type name="mycoolarticle" extends="midgard_article">
        <!-- In mycoolarticle, name is a MultiLang field -->
        <property name="name" type="string" index="yes" multilang="yes">
  • Option1: The properties we inherit from parent are stored in parent's table(s), the "added" or changed properties in our own table(s), then JOINed.
  • Option2: Create new set of tables for mycoolarticle, put everything there, no connection between midgard_article and mycoolarticle except that we inherit some field defs.

Note: we need some way of converting objects between types sharing same superclass (change this article from mycoolarticle to mysupercoolarticle, which both extend midgard_article)

Change History

03/27/09 17:05:15 changed by piotras

  • version changed from 9.03 Vinland to 9.09.
  • milestone changed from 9.03 Vinland to 9.09 Mjolnir.

05/04/09 13:09:42 changed by piotras

  • status changed from new to assigned.

05/18/09 11:31:04 changed by piotras

(In [22221]) Initial, refs #790

05/18/09 11:32:12 changed by piotras

(In [22222]) Initial, refs #790, refs #1008

05/18/09 19:40:44 changed by piotras

(In [22230]) New MgdSchemaTypeAttr? and MgdSchemaPropertyAttr? routines. refs #1008, refs #790

05/18/09 22:21:52 changed by piotras

(In [22233]) Added routine to copy MgdSchemaPropertyAttr? to MgdSchemaTypeAttr?. refs #790, refs #1008

05/20/09 13:42:28 changed by piotras

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [22248]) Copy and extend MgdSchema?. Fixes #790, refs #1008