I ask not to kick strongly for noob question. The question is not specific to Symfony, but work with her and Doctrine.
I need to make a category on the site - in fact this menu of the site consisting of 50-60 points. From a text - on the average text size is about 6kb. Menu present on all pages (well, usually on the websites), but the text only displays the current category, not all at once. It turns out that the other categories will just consume resources of the server, and virtual hosting they are not limitless.
I'm not an experienced programmer, therefore I ask Council. How best to organize object categories:
- write in category, just the text field?
or to put that text in a separate object and inject it in the category?
Perhaps due to the use of the doctrine in Symfony consumption of resources will be greater if the native PDO, and still better to use a nested object with text? Asking this because Symfony is the ability to use "lazy loading". And if I understand correctly, when using it, and the categories implemented by the objects that are downloaded will not all 60 categories, and only the one will treatment that will reduce the consumption of resources.
In General, prompt, as is usually done? The fact that I wanted to make tags that will definitely be implemented by the objects in the category (described above) and other objects (e.g., articles, images). Tags also need to add text for SEO optimization, which will be displayed on the page only if the active (selected) a specified tag. And it turns out that the category will be your text, and the text of all tags that are assigned to the category. In this case, the tags and text to introduce a separate object?
Thanks for the help!