[doc] explain the difference between a relation and an attribute 3.26
authorLaurent Peuch <cortex@worlddomination.be>
Thu, 21 Feb 2019 18:57:24 +0100
branch3.26
changeset 12466 68b0f200af8a
parent 12465 d6fc05be2b4c
child 12467 7b887f7d711f
[doc] explain the difference between a relation and an attribute
doc/tutorials/advanced/part02_security.rst
--- a/doc/tutorials/advanced/part02_security.rst	Thu Feb 21 18:57:05 2019 +0100
+++ b/doc/tutorials/advanced/part02_security.rst	Thu Feb 21 18:57:24 2019 +0100
@@ -58,7 +58,14 @@
   which will define who can see the entity
 * security propagation will be done in hooks
 
+.. Note::
 
+   What makes `visibility` an attribute and not a relation is that its object
+   is a primitive type, here `String`.
+
+   Other builtin primitives are String, Int, BigInt, Float, Decimal, Boolean,
+   Date, Datetime, Time, Interval, Byte and Password and for more information
+   read :ref:`EntityType`
 
 So the first thing to do is to modify my cube's :file:`schema.py` to define those
 relations: