A Doctrine 2 standalone project released with composer and a database entity for a MySQL database category table with a parent \ child relationship between 2 fields.A model will recover data and view the structure in a single view.