Hey guys!
I have a table:
CREATE TABLE `office_stats` (
...
`source` TINYINT(1) UNSIGNED NULL DEFAULT NULL
...
)
in php:
$leadRef = new OfficeStats();
...
$leadRef->source = 3;
$leadRef->save();
And catch: Exception: Parameter 'source' must be a string
Why?