X

self::LIST_COMMA used with user-groups without "list" attribute

  • Thread starter Thread starter Xon
  • Start date Start date

Visitor Greeting

Welcome to NullWarehouse.com... We are currently seeking Mod's and Contributors. If you wish to apply for a Mod position then please click on Members dropdown arrow, then click on Staff App and fill it out completely and submit it. If you want to be a Contributor then start contributing and we will have our eye on you and take notice, something great could come of it.

  • We have redone the forum. If you notice any issues or errors please open a Support Ticket under the Members dropdown and let us know.
X

Xon

Guest

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' => 'int', '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 trying...

Read more

Continue reading...
 
Similar content Most view View more
Back
Top Bottom