Assume we have models defined in Defining Models

Retrieving A Record By Primary Key

Retrieving A Record By Conditions


By the convention, the Model property name is processed by camelCase. For example, if the users table has column created_time. To get the created_time value through model, you should use: $user->createdTime

Working with CRUD

CREATE
READ
UPDATE
DELETE


comments powered by Disqus