php - NULL::character varying CakePHP 3 Form -


i null::character varying value of form in cakephp 3 when expect blank created new entity. controller code use is

public function add() {     $audience = $this->audiences->newentity();     $this->set(compact('audience', 'languages'));     $this->set('_serialize', ['audience']); 

in add.ctp code redner form is

echo $this->form->create($audience, ['novalidate' => true]); echo $this->form->input('audience', ['type' => 'text']); 


Comments

Popular posts from this blog

c++ - CPP, 'X' button listener -

shared memory - gstreamer shmsrc and shmsink with h264 data -

.net - Bulk insert via Dapper is slower than inserting rows one-by-one -