Hi I have asked for related question but I want to clear that Phalcon has many great libraries/features about most common problems. But in detail, things are should done by developers. For example I want to get simple recursive category pattern in same model. For this I must write my recursive pattern Phalcon ORM not give me this stuation.
<?php
class Category extends Phalcon\Mvc\Model {
public function childCategory()
{
return $this->belongsTo('parent_id', 'Category');
}
}
Category::with('childCategory')->find(); // can give me all recursive category structure, no need foreach every item recursively