[doc] explain the difference between a relation and an attribute
authorLaurent Peuch <cortex@worlddomination.be>
Thu, 21 Feb 2019 18:57:24 +0100
changeset 12401 66d98cfdd914
parent 12400 a9f15d3d65f9
child 12402 e4da2575ac37
[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: