vendredi 5 mai 2017

How to replace the value of field on another?

I have some table with the same two fields:

value, default_value

How to return result with replacing value on default_value when value is null?

I dont use iteration with result collection. I try to make universal solution.

I tried to use local scopes, but seems it is bad decision.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire