I have a requirement (not of my choice) to save a string into the database with various numbers of whitespace preceding the string.
I realise and have voiced my concerns that this is not a best practice, but have been overruled.
My issue is that Yii appears to trim the string before saving or updating.
How can I override this default and allow the string to be saved without trimming it down.
Thanks in advance!
Here’s the answer http://stackoverflow.com/q/7749126/139906