Closed mitom closed 10 years ago
If the relationship hasn't been loaded from the server yet, we won't know what the start and end nodes are. The loadProperties
call retrieves the entire representation of the relationship, which includes the properties and also the start/end nodes.
We don't have to call loadProperties
if we already have the nodes; wrapping the $this->loadProperties()
call in if ($this->start)
or if ($this->end)
would be better than not calling it at all.
Thank you for your response, I updated the PR accordingly.
I was wondering why are the relationship's properties hydrated when only the start and end nodes of it are requested, seems unnecessary to me.