Closed (fixed)
Project:
D8 Entity API improvements (Sandbox)
Component:
Entity Property API
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
15 Aug 2012 at 13:47 UTC
Updated:
17 Sep 2012 at 13:01 UTC
Revisit basic definition keys and document them. Also, make sure all type-specific definition keys are documented.
See the related phpcr classes:
http://phpcr.github.com/doc/html/phpcr/nodetype/propertydefinitioninterf...
http://phpcr.github.com/doc/html/phpcr/nodetype/nodedefinitioninterface....
Comments
Comment #1
fagoI've done so. I've added a 'constraints' sub-array which can contain type-specific constraints and 'settings' for implementation specific settings - as used for computed properties. I've also moved 'entity type' and 'bundle' below constraints, as those are type specific. That way, all definition keys are defined fixed and may be extend depending on usage, i.e. entity properties add some specific keys (queryable, translatable). The same way additional keys could be added when data definitions are used to describe condition parameters, etc.