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 - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -