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

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -