Closed UweJakobs closed 5 years ago
No this is not part of the feuser model. If you need that, you have to integrate a SignalSlot and use
$user->setName($user->getFristName() . ' ' . $user->getLastName())
Beside i would not advise to use it like that. The combined field is more or less a simplification if you want to use only one field to both values.
Why do you want to use name instead of first_name last_name?
I totally agree with you - this was a customers request as he had the possibility to do so with his former "femanager"-Extension . To be honest, I think it was only because of he was used to order the FeUsers in Backend by hitting the "name"-Field ;)
For this kind of "special needs" the SignalSlots are provided in every action before save or update in the repository.
Is there a possibility to generate Field-Contents out of the value of other fields? Like "name" from a concat of "first_name" and "last_name"? Didn't find it so far.