For example (it is a bad example for the purpose of my question), i want to store the user fullname by concatenating the firstname and lastname.
I have a table user with firstname, lastname, fullname
Is there a way to create a field in the schema with a trigger function that stores in fullname firstname+lastname ? The same way the created_at works (with timestampable)
I use doctrine and symfony 1.4
You definately don’t need to create a behaviour for something as simple and as unreusable as this.
Just override your model save method: