Beispiel #1
0
 /**
  * Add a clause to set all properties to be updated on the wished variable
  *
  * @param Str $variable
  * @param CollectionInterface $changeset
  * @param Query $query
  *
  * @return Query
  */
 private function update(Str $variable, CollectionInterface $changeset, Query $query) : Query
 {
     return $query->set(sprintf('%s += {%s_props}', $variable, $variable))->withParameter((string) $variable->append('_props'), $changeset->toPrimitive());
 }