Если вы думаете о создании чего-то вроде хлебной крошки, getPath сделает это:
getPath
public string getPath(string seperator, mixed includeRecord, bool includeNode)
gets path to node from root, uses record::toString() method to get node names
Parameters:
seperator - path seperator
includeNode - whether or not to include node at end of path
Returns:
string representation of path
http://www.doctrine -project.org / апи / ОРМ / 1,2 / Доктрина / doctrine_node_nestedset.html # GetPath% 28% 29
Так что вам нужно переопределить __toString () в вашей модели. Если вы этого не сделаете, Doctrine попытается угадать, что писать, ища столбцы с именами «name», «title» и тому подобное.