app/library/Mvc/Model/Behavior/RandomId.php: "_optoins" property is renamed to "options"
This commit is contained in:
parent
0d59417636
commit
191f1c1930
1 changed files with 4 additions and 4 deletions
|
|
@ -57,11 +57,11 @@ class RandomId extends Behavior implements BehaviorInterface
|
|||
*/
|
||||
public function generateId(\Phalcon\Mvc\ModelInterface $model)
|
||||
{
|
||||
$field = $this->_options['field'];
|
||||
$len = $this->_options['length'];
|
||||
$field = $this->options['field'];
|
||||
$len = $this->options['length'];
|
||||
|
||||
if (isset($this->_options['expression'])) {
|
||||
$expr = 'AND ' . $this->_options['expression'];
|
||||
if (isset($this->options['expression'])) {
|
||||
$expr = 'AND ' . $this->options['expression'];
|
||||
} else {
|
||||
$expr = '';
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue