original_string: public static function find($id = null, array $options = array())
  	{
  		$timestamp_end_name = static::temporal_property('end_column');
  		$max_timestamp = static::temporal_property('max_timestamp');
  
  		switch ($id)
  		{
  			case 'all':
  			case 'first':
  			case 'last':
  				break;
  			default:
  				$id = (array) $id;
  				$count = 0;
  				foreach(static::getNonTimestampPks() as $key)
  				{
  					$options['where'][] = array($key, $id[$count]);
  
  					$count++;
  				}
  				break;
  		}
  
  		$options['where'][] = array($timestamp_end_name, $max_timestamp);
  
  		static::enable_id_only_primary_key();
  		$result = parent::find($id, $options);
  		static::disable_id_only_primary_key();
  
  		return $result;
  	}
code: public static function find($id = null, array $options = array())
  	{
  		$timestamp_end_name = static::temporal_property('end_column');
  		$max_timestamp = static::temporal_property('max_timestamp');
  
  		switch ($id)
  		{
  			case 'all':
  			case 'first':
  			case 'last':
  				break;
  			default:
  				$id = (array) $id;
  				$count = 0;
  				foreach(static::getNonTimestampPks() as $key)
  				{
  					$options['where'][] = array($key, $id[$count]);
  
  					$count++;
  				}
  				break;
  		}
  
  		$options['where'][] = array($timestamp_end_name, $max_timestamp);
  
  		static::enable_id_only_primary_key();
  		$result = parent::find($id, $options);
  		static::disable_id_only_primary_key();
  
  		return $result;
  	}
code_tokens: public static function find ( $ id = null , array $ options = array ( ) ) { $ timestamp_end_name = static :: temporal_property ( 'end_column' ) ; $ max_timestamp = static :: temporal_property ( 'max_timestamp' ) ; switch ( $ id ) { case 'all' : case 'first' : case 'last' : break ; default : $ id = ( array ) $ id ; $ count = 0 ; foreach ( static :: getNonTimestampPks ( ) as $ key ) { $ options [ 'where' ] [ ] = array ( $ key , $ id [ $ count ] ) ; $ count ++ ; } break ; } $ options [ 'where' ] [ ] = array ( $ timestamp_end_name , $ max_timestamp ) ; static :: enable_id_only_primary_key ( ) ; $ result = parent :: find ( $ id , $ options ) ; static :: disable_id_only_primary_key ( ) ; return $ result ; }
docstring: Overrides the default find method to allow the latest revision to be found
  by default.
  
  If any new options to find are added the switch statement will have to be
  updated too.
  
  @param type $id
  @param array $options
  @return type
docstring_tokens: Overrides the default find method to allow the latest revision to be found by default .