RSS Feed/News self::LIST_COMMA used with user-groups without "list" attribute

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
25,549
Points
823

Reputation:

Both AbstractField and AbstractPrefix implement user-group lists for allowed/editable lists, which are a type hinted on the entity as a list integers. The backing store uses Entity::LIST_COMMA/self::LIST_COMMA which will return a list of strings.

Using 'list' => ['type' => 'posint', 'unique' => true, 'sort' => SORT_NUMERIC] in the column definition means the integer nature will be preserved and saved into json caches as expected.

This is most relevant if...

Read more

Continue reading...
 
Status
Not open for further replies.
Top