Hi,
I have category entity that has an id, name and maincat(means that it can have a main category).
For example;
I am trying to add a category that will be a sub category of the book (i=1)
I am putting all categories in a selectOneMenu. I wanna show category names but return ids because the main cat which I choose is an integer. How can I do that ?
Thanks in advance.