Пример #1
0
 /**
  * @see IField::persistProperty()
  */
 public function persistProperty(IObject $object, IProperty $property, IQueryBuilder $builder)
 {
     if ($builder instanceof IUpdateBuilder) {
         $localeId = $property->getLocaleId();
         if ($localeId && !$this->hasLocale($localeId)) {
             return $this;
         }
         $builder->set($this->getColumnName($localeId));
         $value = $this->calculateDBValue($object, $localeId);
         $builder->bindValue(':' . $this->getColumnName($localeId), $value, $this->getDataType());
         $property->setValue($value);
     }
     return $this;
 }