# HG changeset patch # User Laurent Peuch # Date 1550771844 -3600 # Node ID 66d98cfdd9140f55f9bd6b23198a6c9a5c0457dd # Parent a9f15d3d65f9560b6c4ea077ee49f0298f2c7865 [doc] explain the difference between a relation and an attribute diff -r a9f15d3d65f9 -r 66d98cfdd914 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: