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)
|
public function generateId(\Phalcon\Mvc\ModelInterface $model)
|
||||||
{
|
{
|
||||||
$field = $this->_options['field'];
|
$field = $this->options['field'];
|
||||||
$len = $this->_options['length'];
|
$len = $this->options['length'];
|
||||||
|
|
||||||
if (isset($this->_options['expression'])) {
|
if (isset($this->options['expression'])) {
|
||||||
$expr = 'AND ' . $this->_options['expression'];
|
$expr = 'AND ' . $this->options['expression'];
|
||||||
} else {
|
} else {
|
||||||
$expr = '';
|
$expr = '';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Reference in a new issue