for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* HIAM module for MRDP database compatibility
*
* @link https://github.com/hiqdev/hiam-mrdp
* @package hiam-mrdp
* @license BSD-3-Clause
* @copyright Copyright (c) 2016, HiQDev (http://hiqdev.com/)
*/
namespace hiam\mrdp\storage;
* Contact model.
* @property integer $obj_id PK
* @property string $first_name
* @property string $last_name
* @property string $email
class Contact extends \yii\db\ActiveRecord
{
* {@inheritdoc}
public function rules()
return [
[['first_name', 'last_name'], 'trim'],
[['first_name', 'last_name'], 'string', 'min' => 2, 'max' => 64],
['email', 'trim'],
['email', 'filter', 'filter' => 'strtolower'],
['email', 'email'],
];
}