symphonycms/symphony-2 — pull request #1215 by kanduvisla (2012-03-28 14:26:56+00:00)
Title: Modules preparation : move all SQL-logic into the managers

This pull requests moves all the SQL-logic made to `tbl_pages`, `tbl_fields` and `tbl_sections` into their corresponding Managers. I had to add some static functions to the managers to provide the needed functionality on some points, but (nearly) all the logic is now moved.

## Some points of attention:

- There is still some section-SQL-logic left in the FieldManager.
- Also there is still some pages-SQL-logic left in the navigation datasource.

## Don't worry, it's safe

I've worked and merged with the latest integration branch, and no issues have been found. This is not very surprising, since the only thing I've done is moved some logic to the managers and created some new functions in the managers to handle certain logic. In other words: *nothing new is created, it's just moving of code*.

I'll work further on this code, but know that it's safe to merge this pull request in the integration branch, and please consider to do so. I will continue my work on [Storing Sections and Pages as XML](https://github.com/symphonycms/symphony-2/issues/1002) and this pull request covers step 2-4 from my [roadmap](https://github.com/kanduvisla/symphony-2/wiki/Modules-roadmap)