ORM extensions development - Tree extension