We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Some questions about Phalcon\Mvc\Model

Hi!

Class Custome extends Phalcon\Mvc\Model { public $id;

      public $name;

      public $type;

      public function xxxxx() 
      {

      }

}

About up. If there are more and more fields in a table. Write "public $xxx" like this I need to do ? Why should we do like this ?

Sorry,My chinese is poor. Hope reply!



404

You don't need to add all table fields as Model members. Actually you don't need to add any of them at all. Phalcon reads table's scheme and makes all fields as members without your participation.

And sorry for my bad English.



15.6k

Wrong,

Sorry, My English is poor .Not "My chinese is poor".

Thanks for your reply!