original_string: public function registerAlsoLoadMethod($method, $attributes)
      {
          $this->alsoLoadMethods[$method] = is_array($attributes) ? $attributes : [$attributes];
      }
code: public function registerAlsoLoadMethod($method, $attributes)
      {
          $this->alsoLoadMethods[$method] = is_array($attributes) ? $attributes : [$attributes];
      }
code_tokens: public function registerAlsoLoadMethod ( $ method , $ attributes ) { $ this -> alsoLoadMethods [ $ method ] = is_array ( $ attributes ) ? $ attributes : [ $ attributes ] ; }
docstring: Registers a method for loading document data before attribute hydration.
  
  Note: A method may be registered multiple times for different attributes.
  it will be invoked only once for the first attribute found.
  
  @param string       $method     Method name
  @param array|string $attributes Database attribute name(s)
docstring_tokens: Registers a method for loading document data before attribute hydration .