original_string: public function before_insert(Orm\Model $obj)
  	{
  		if ($obj instanceof Orm\Model_Temporal)
  		{
  			if ($obj->{$obj->temporal_property('end_column')} !== $obj->temporal_property('max_timestamp')) {
  				return false;
  			}
  		}
  
  		if ($user_id = \Auth::get_user_id())
  		{
  			$obj->{$this->_property} = $user_id[1];
  		}
  	}
code: public function before_insert(Orm\Model $obj)
  	{
  		if ($obj instanceof Orm\Model_Temporal)
  		{
  			if ($obj->{$obj->temporal_property('end_column')} !== $obj->temporal_property('max_timestamp')) {
  				return false;
  			}
  		}
  
  		if ($user_id = \Auth::get_user_id())
  		{
  			$obj->{$this->_property} = $user_id[1];
  		}
  	}
code_tokens: public function before_insert ( Orm \ Model $ obj ) { if ( $ obj instanceof Orm \ Model_Temporal ) { if ( $ obj -> { $ obj -> temporal_property ( 'end_column' ) } !== $ obj -> temporal_property ( 'max_timestamp' ) ) { return false ; } } if ( $ user_id = \ Auth :: get_user_id ( ) ) { $ obj -> { $ this -> _property } = $ user_id [ 1 ] ; } }
docstring: Sets the CreatedBy property to the current user id
  
  @param Model Model object subject of this observer method
docstring_tokens: Sets the CreatedBy property to the current user id