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
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
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