Adjacency tree helpers and behaviors for yii2 ActiveRecord models