Open sirex opened 2 years ago
Opening this task, because exposed intermediate tables are not yet implemented.
Reikia atskirti į atsikiras užduotįs jas detalizuojant
Reikalingi detalesni užduoties aprašymai. Šiuo metu nėra aišku, ką norite, kad atliktume.
Kad Justinui viskas kaip ir aišku
Reikia tas 3 dalis išskaidyti į atskiras užduotis ir detalizuoti kiekvieną, pateikiant kaip bus naudojama, kokie turės būti rezultatai, kaip buvo įsivaizduota kad veiks.
Sukurta atskira užduotis:
Iškelta į atskiras užuotis: Push data #760 RDF support #761
When property has
prop[]
name, then it should be implied, thatprop
is ofarray
type.When
prop[] ref Model
is given, then a many to many relationship between models should be created.When
Model.prop array Other
is given, then a many to many relationship between models should be created thoughOther
table instead of usingModel/:list/prop
hidden table. In this caseprop[]
type must beref
and must be given. By default, many to many relationship will be created though properties, that matches current andprop[] ref
models.When
prop array Model[prop1, prop2]
is given, then many to many relationship must be created throughprop1
andprop2
properties inModel
. This must be used, when several refs are used to the same models used in many to many relationship.Examples:
Here a hidden table
example/Country/:list/languages
will be created and used as intermediate table for many-to-many relationship withLanguage
.A custom intermediate table can be specified like this:
Now intermediate table is no longer hidden and
CountryLanguage
is used instead.CountryLanguage
must have tworef
type properties pointing to both many-to-many ends.If there are multiple
rel
properties pointing to same models and in many-to-many relation, then which properties to be used for many-to-many relation can be specified like this:By default data from
array
properties are not show, for example:Will return following result:
In order to also get data from
array
, you need to explicitly requrest data withexpand()
function, like this:Then you will get this:
By default
expand()
will expand allarray
data, but use should be able to tell which properties to expand like this:For tabular formats, expanded
array
data are shown liek this:Data from main table are repeated for each item in array.
Tasks
expand()
expand(prop)
Related issues