Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace appmodelscustomer;
- use yiidbActiveRecord;
- class CustomerRecord extends ActiveRecord
- {
- public static function tableName()
- {
- return 'customer';
- }
- public function rules()
- {
- return [
- //['name' => 'string'],
- //['name' => 'required'],
- ['birth_date', 'date', 'format' => 'd-m-Y'] ,
- ['birth_date', 'required'] ,
- ['notes', 'safe'] ,
- ];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement