Why all model fields are strings? If my table column type is integer how can I get model field be the integer type?
I think do it like this is not very good:
function getId()
{
return (int) $this->id;
}
Why all model fields are strings? If my table column type is integer how can I get model field be the integer type?
I think do it like this is not very good:
function getId()
{
return (int) $this->id;
}