Work with the database in OOP applications on php 5.3


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
5 views
Tell us who's using what for working with the database (MySQL)?
Use ORM? If so, what?
If not, how to solve the problem of the relations many-to-many via a third table? Whether you create a third table object?

I ask, because is not the first week unsure what to choose. Everywhere recommend Doctrine. Used it for my bike a year or two ago (version was then 1 stable). Seemed unnecessarily redundant and terribly brake. A little saved then compile all classes into one file is 2.5 megabytes in size. A second version tried to get swoop — did not get a descent. Whether under her "digging" then?

I will be using MyISAM without foreign keys, all of the buns really only need a mapping on objects and an iterator for the add-on. Well, the opportunity to do "pure" queries, if necessary. Respect, again. As a many-to-one, and through a third table. Planned high load.
Tried phpactiverecord is a nice thing, but with reports he... Pichal. As with composite class names of the form My_Library_Facade, My_Library_Proxy etc.
by | 5 views

6 Answers

0 like 0 dislike
by
0 like 0 dislike
I have my own bike :) many-to-many through the graph for which a separate table
by
0 like 0 dislike
Propel has what you are looking for + a lot more without the brakes wild doctrine
by
0 like 0 dislike
Are you using any framework?
\r
We use the 3 Kokhan and her Jelly — cheap, with correlations is friends well.
\r
Many-to-Many does not require creation of models for the intermediate tables.
\r
One problem — not standalone.
by
0 like 0 dislike
Developing using Yii Framework I use mostly ORM. Sometimes in narrow places doing the queries manually, using PDO. Special performance issues arose.
by
0 like 0 dislike
Yuzaem Doctrine + own extensions for it. Happy like a boa constrictor) About the brakes, so it is inevitable. For convenience you have to pay. But you can have a good speed of web applications yuzaya kairomone zaprosov and caching samples.
by

Related questions

0 like 0 dislike
3 answers
0 like 0 dislike
5 answers
0 like 0 dislike
5 answers
0 like 0 dislike
5 answers
0 like 0 dislike
5 answers
110,608 questions
257,186 answers
0 comments
27,959 users