Inherit from system.language or extend system.language?
0
Hi, I need some extra attribute in the system.language entity (e.g. order). I am not able to edit the system.language entity, therefore I would like to extend the entity with my own language entity and a 1 to 1-Relationship, but this doesn’t work. And I can’t inherit from the system.language either. Do I have a chance to add my own attributes to the system.language entity?
asked
Forgotten User Oc0rhGekpP
2 answers
0
No entity in module system can get changed. Neither can any of system’s entities be made owner of a new association. Your only option is to create an entity in one of your own modules and associate it *-1 to system.language. 1-1 and 1-* association is not allowed. If you need it to be a 1-1, add a BeforeCommit and/or BeforeChange microflow to ensure this. You will still suffer from the *-1 association though when retrieving objects from your entity via System.language, since it will return a list.
answered
Tim v Steenbergen
0
Hi Tim,
Thanks for your comment. Then I have to use a *-1 assosiation.