original_string: protected function getDynamicRelationship($name)
      {
          // Dynamically get the relationship
          if ($this->isRelationship($name)) {
              // Use the relationship already loaded
              if (array_key_exists($name, $this->getRelations())) {
                  return $this->getRelation($name);
              }
  
              // Load the relationship
              return $this->getRelationshipFromMethod($name, camel_case($name));
          }
      }
code: protected function getDynamicRelationship($name)
      {
          // Dynamically get the relationship
          if ($this->isRelationship($name)) {
              // Use the relationship already loaded
              if (array_key_exists($name, $this->getRelations())) {
                  return $this->getRelation($name);
              }
  
              // Load the relationship
              return $this->getRelationshipFromMethod($name, camel_case($name));
          }
      }
code_tokens: protected function getDynamicRelationship ( $ name ) { // Dynamically get the relationship if ( $ this -> isRelationship ( $ name ) ) { // Use the relationship already loaded if ( array_key_exists ( $ name , $ this -> getRelations ( ) ) ) { return $ this -> getRelation ( $ name ) ; } // Load the relationship return $ this -> getRelationshipFromMethod ( $ name , camel_case ( $ name ) ) ; } }
docstring: Get a dynamically resolved relationship.
  
  @param string $name
  
  @return mixed
docstring_tokens: Get a dynamically resolved relationship .