superles / gii-template-collection

Automatically exported from code.google.com/p/gii-template-collection
0 stars 0 forks source link

Issue with BaseModel::__toString #17

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The __toString method must return a string.
When the selected field is NULL on db, an empty string must be returned, not 
null.
Fix:

return $this->FIELDNAME === null ? '' : $this->FIELDNAME;

Original issue reported on code.google.com by rodrigo.coelho@gmail.com on 14 Sep 2010 at 2:55

GoogleCodeExporter commented 8 years ago
Fixed by r149.

Original comment by rodrigo.coelho@gmail.com on 6 Oct 2010 at 11:03

GoogleCodeExporter commented 8 years ago
fixed in issue 149

Original comment by thyseus on 6 Oct 2010 at 11:03