Adding new encoded type is incredibly difficult due to a lack of context in the functions, and a critical function being not easily extendable.
This function has all the context you could want.
The key is missing, which is rather anoying but workable.
This function does not receive the entity, key or column options. Additionally XF\Mvc\Entity\Manager also isn't extendable without replacing the em container.
Is there any getEntitySourceValue isn't just a normal entity method? It is only ever called from an entity internal methods. All the entity per-type functions are also pure-entity functions.
Code:
XF\Mvc\Entity\Entity::_castValueToType($value, $key, $type, array $columnOptions = [])
Code:
XF\Mvc\Entity\Entity::_decodeColumnValue($value, array $column)
Code:
XF\Mvc\Entity\Manager::getEntitySourceValue($type, $value)
Is there any getEntitySourceValue isn't just a normal entity method? It is only ever called from an entity internal methods. All the entity per-type functions are also pure-entity functions.
Upvote
0