Re: [symfony-users] Re: We are facing some issues with symfony backend.

2010-07-26 Thread Georg
brajesh, the admin generator receives an empty (= '') form field when saving an object, and this is stored. If you want to change empty to null, add a preSave() method to your object, that checks for empty fields: public function preSave($event){ if ($this->nullablefield === ''){ $this->nul

[symfony-users] Re: We are facing some issues with symfony backend.

2010-07-26 Thread brajesh
Hi friends, I have generated backend by symfony. Suppose i have a table in schema.yml listing: id: type: char name: Then i have generated Model, Sql and Backend by symfony. Now the problem is: If, in the database "listing.type" have null value and i open a listing by symfony backen

[symfony-users] Re: We are facing some issues with symfony backend.

2010-07-24 Thread John Kary
Firstly, I'd recommend reading about the difference between a NULL value and a blank string value: http://www.databasedev.co.uk/null_values_defined.html A NULL is a truly unknown value. Like if you loaded fixtures and did not define some fields in the fixture, the records would import with NULL v