Doctrine ORM
- bantu
- 3.0 Release Manager
- Posts: 557
- Joined: Thu Sep 07, 2006 11:22 am
- Location: Karlsruhe, Germany
- Contact:
Re: Doctrine DBAL & ORM
I have used the Doctrine ORM in one of my projects. As soon as your logic gets a bit more complex and you add things like aggregation, you start working around the ORM. An ORM probably works well for trivial projects such as websites, but it won't work for phpBB. The interface to use to talk to the database should be SQL.
Doctrine ORM
The advantages of an ORM are as follows:
This depends on the Doctrine DBAL and would likely be for 3.2.
- Neater
- You don't need to use SQL, just PHP
- Easy to pick up
- Organised entities
- The model data is all together so it’s easier to update, maintain and reuse.
- Handles sanitization etc. when you persist to the database
This depends on the Doctrine DBAL and would likely be for 3.2.
Formerly known as Unknown Bliss
No unsolicited PMs please except for quotes.psoTFX wrote: I went with Olympus because as I said to the teams ... "It's been one hell of a hill to climb"
Re: Doctrine ORM
How long would it take to write a basic model for the main objects used in phpBB? A PoC would surely help people form an opinion or update their old opinion. I haven't used Doctrine since the early 2.0 versions, and back then it lacked some features that made me forgo trying to use it. I haven't had the occasion to use it since then. I'd wager that a lot of people have had a similar experience.
IIRC, the two pain points were auto_incremented IDs in mutually referencing records and composite indices (perhaps unique composite indices, can't remember exactly.)
IIRC, the two pain points were auto_incremented IDs in mutually referencing records and composite indices (perhaps unique composite indices, can't remember exactly.)
Re: Doctrine ORM
are you wanting to come up with one for phpbb or implement one that already exists? Also isn't their one included in symphony? I have not worked with symphony at all but I have worked with Larval which uses eloquent
Re: Doctrine ORM
Are you sure that's an advantage?MichaelC wrote:The advantages of an ORM are as follows:
- You don't need to use SQL, just PHP
I've always been confused with abstractions... (hence I can't handle rails)
Does it sanitize it really properly or it almost does it properly?MichaelC wrote:
- Handles sanitization etc. when you persist to the database
The tendency I see too much is not to do stuff properly and do it such that it just works...
Re: Doctrine ORM
it makes it more readable and adds better ability to work with crud for apis in my opinion
- Pony99CA
- Registered User
- Posts: 986
- Joined: Sun Feb 08, 2009 2:35 am
- Location: Hollister, CA
- Contact:
Re: Doctrine ORM
For those of us who have no idea what you're talking about, what is an ORM? I searched and there were several definitions that seemed to fit.
Remember, one principle of good communication is defining your acronyms when first used.
Steve
Remember, one principle of good communication is defining your acronyms when first used.
Steve
Silicon Valley Pocket PC (http://www.svpocketpc.com)
Creator of manage_bots and spoof_user (ask me)
Need hosting for a small forum with full cPanel & MySQL access? Contact me or PM me.
Creator of manage_bots and spoof_user (ask me)
Need hosting for a small forum with full cPanel & MySQL access? Contact me or PM me.
Re: Doctrine ORM
ORM stands for Object Relational Mapper here is an article detailing how to use the eloquent ORM along with a basic level description http://codehappy.daylerees.com/eloquent-orm
Re: Doctrine ORM
This is a board for technical discussion and I used a technical term which the majority of developers here will know what it refers to whilst others can, as you stated, google it. I also described what an ORM did.Pony99CA wrote:For those of us who have no idea what you're talking about, what is an ORM? I searched and there were several definitions that seemed to fit.
Remember, one principle of good communication is defining your acronyms when first used.
Steve
Formerly known as Unknown Bliss
No unsolicited PMs please except for quotes.psoTFX wrote: I went with Olympus because as I said to the teams ... "It's been one hell of a hill to climb"
- imkingdavid
- Registered User
- Posts: 1050
- Joined: Thu Jul 30, 2009 12:06 pm
Re: Doctrine ORM
For those who are unaware of what Doctrine ORM is, here is the website where it gives a brief definition as well as documentation with examples.