Some questions about Phalcon\Mvc\Model


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!


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.



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

Thanks for your reply!