# HG changeset patch # User Laurent Peuch # Date 1550771844 -3600 # Node ID 68b0f200af8acaeb5483ef40b447d28c33b7c94a # Parent d6fc05be2b4c919252ec81f52ba89872b24a1158 [doc] explain the difference between a relation and an attribute diff -r d6fc05be2b4c -r 68b0f200af8a 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: