I'm trying to join tables PostsCategories
What i'm trying to do is print all the categories, but if a categorie has a parent categorie, print the categorie :-)
Hope you understand!
( What i am trying so far )
$this->modelsManager->createBuilder()
->columns(array('PostsCategories.name', 'parent_categorie.parent as parent'))
->from('PostsCategories')
->join('PostsCategories as parent_categorie')
->orderBy('PostsCategories.id DESC')
->limit('9')
->getQuery()
->execute();