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

Add configuration options for (inverse-)reference type#54

Merged
niels-nijens merged 1 commit into
FlexModel:masterfrom
niels-nijens:reference-type-control
Oct 11, 2016
Merged

Add configuration options for (inverse-)reference type#54
niels-nijens merged 1 commit into
FlexModel:masterfrom
niels-nijens:reference-type-control

Conversation

@niels-nijens

Copy link
Copy Markdown
Contributor

This PR expands upon #49 to be able to configure many-to-one, one-to-one, one-to-many.

When you have an object reference field within your FlexModel configuration

<field name='someobject' datatype='OBJECT.Someobject'/>

You're now able to control the type of reference by adding the following within the <orm> node of the object:

<reference type='one-to-one' name='someobject'/>

The type attribute is also added to the inverse-reference nodes.

@niels-nijens
niels-nijens merged commit 09441bf into FlexModel:master Oct 11, 2016
@niels-nijens niels-nijens modified the milestone: 0.3.0 Oct 11, 2016
@niels-nijens
niels-nijens deleted the reference-type-control branch February 3, 2017 12:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant