phalcon/cphalcon — pull request #2178 by dreamsxin (2014-03-15 03:29:22+00:00)
Title: [NFR]Add param allow_empty to \Phalcon\Mvc\Model::validate

Before
```php
if (!empty($this->idcard)) {
$this->validate(new Uniqueness(array(
'field' => 'idcard',
'message' => 'exists'
)));
}
```

Now
```php
$this->validate(new Uniqueness(array(
'field' => 'idcard',
'message' => 'exists'
)), TRUE);
```