original_string: private function updateActiveRow(Entity $entity) {
  		$reflection = $entity->getColumns();
  		$record = array();
  		foreach ($reflection as $property) {
  			$name = $property['name'];
  			if ($entity->toRow()->$name != $entity->$name) {
  				$record[$name] = $entity->$name;
  			}
  		}
  		if (count($record) > 0) {
  			$entity->toRow()->update($record);
  		}
  		$this->addLoop($entity);
  	}
code: private function updateActiveRow(Entity $entity) {
  		$reflection = $entity->getColumns();
  		$record = array();
  		foreach ($reflection as $property) {
  			$name = $property['name'];
  			if ($entity->toRow()->$name != $entity->$name) {
  				$record[$name] = $entity->$name;
  			}
  		}
  		if (count($record) > 0) {
  			$entity->toRow()->update($record);
  		}
  		$this->addLoop($entity);
  	}
code_tokens: private function updateActiveRow ( Entity $ entity ) { $ reflection = $ entity -> getColumns ( ) ; $ record = array ( ) ; foreach ( $ reflection as $ property ) { $ name = $ property [ 'name' ] ; if ( $ entity -> toRow ( ) -> $ name != $ entity -> $ name ) { $ record [ $ name ] = $ entity -> $ name ; } } if ( count ( $ record ) > 0 ) { $ entity -> toRow ( ) -> update ( $ record ) ; } $ this -> addLoop ( $ entity ) ; }
docstring: Update ActiveRow in current Entity
  @param Entity $entity
docstring_tokens: Update ActiveRow in current Entity