 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
NetTuts.com: Relational Databases for Dummies
by Chris Cornutt March 14, 2013 @ 10:43:13
If you're relatively new to PHP development or have just meaning to get into using relational databases with your application, you should check out this new post from NetTuts giving a "for dummies" approach to learning about RDBMSes.
Web apps can be split into two major components: a front-end that displays and collects information, and a back-end for storing the information. In this article, I'll demonstrate what a relational database is, and how to properly design your database to store your app's information.
They describe the usage of a database in several steps (no code is included, just SQL at the end):
- Get Some Data
- Remove Repetitive Data Across Columns
- Remove Repetitive Data Across Rows
- Linking Tables with Keys
This is followed by links to a few of the different RDBMSes out there and a brief introduction to what SQL is and what it looks like.
voice your opinion now!
relational databases introduction tutorial
DevShed: Building an ORM in PHP Domain Modeling
by Chris Cornutt November 22, 2011 @ 16:46:10
Continuing on from the first part of their series, DevShed has posted part two of their "Building an ORM in PHP" series. This latest tutorial focuses on domain modeling (and collection handling).
In that first part, I implemented the ORM's data access and mapping layers. And as you'll surely recall, the entire implementation process was pretty straightforward and easy to follow. Of course, in its current state the ORM is still far from a fully-functional structure. We need to add some additional components to it, such as a domain model and the classes responsible for handling collections of entities (remember that the ORM relies heavily on the data mapper pattern to do its business properly).
He stays with his "simple blog" example and shows domain models (based on an abstract entity) for Entries, Comments and Authors. His containers extend the Countable, IteratorAggregate and ArrayAccess interfaces to give them some extra abilities.
voice your opinion now!
tutorial domain model orm database mapping relational
Developer.com: Doctrine Object Relational Mapping for Your PHP Development
by Chris Cornutt June 14, 2010 @ 10:22:06
New on Developer.com today there's a new article looking at one of the more powerful ORM tools available for PHP - Doctrine.
Because of the relational database's pivotal role in driving Web applications, a great deal of time and effort has been put into creating tools that not only simplify the task of mapping database tables to a programming language's object-oriented class structure, but also facilitate the management of your data and schemas over the project lifecycle. [...] The PHP community also has a powerful database integration tool at their disposal: a project known as Doctrine.
They help you get started with this powerful tool by showing you how to get it installed, create a sample schema and loading some fixtures (base data). There's also a quick snippet of code showing you how to grab information from a sample user table and display the name of the user.
voice your opinion now!
doctrine object relational map orm tutorial
PHPClasses.org: PHP Object-Relational Mapping ORM or ROM?
by Chris Cornutt October 10, 2008 @ 12:09:37
On the PHPClasses.org blog today Manuel Lemos has posted a look at ORM - what it is and how you can use it to improve your applications.
Object-Relational Mapping, usually referred as ORM, is a software development approach to treat data stored in relational (SQL) database table records as if they were objects. Basically we can create classes with variables that represent fields of a database table. To insert a table record you need to create an object of the class, assign the variable values, and call a function of the class that takes care of inserting the table record
He illustrates what it is (brief code samples) and some of the approaches that developers have taken to implementing it. He suggests, however, that they should truely be called ROM (Relational Object Mapping) libraries rather than ORM due to the fact that they map an object (the database tables) back in to PHP objects. He finishes with a list of a few ORM resources and libraries including the one that helps power the PHPClasses website, Metastorage.
voice your opinion now!
phpclasses orm object relational mapping database layer
Developer Tutorials Blog: Getting Started with ORM in PHP
by Chris Cornutt July 16, 2008 @ 09:35:27
A recent post on the Developer Tutorials blog takes a look at a fundamental part of several of the PHP (and other language) frameworks out there - the Object Relational Mapping (ORM) layer for database access.
Instead of direct database access, an ORM layer in a PHP framework can make "objects" stored in a database behave like actual objects from a programming perspective - for example, creating a new "car" stored in the database could involve a call to $car->new(). By abstracting actual database access, web development can be more productive and result in more reliable applications. Here's a quick intro to ORM in PHP.
They talk about ORM's role in how applications interface with data (abstracted out to objects) and some examples of it in current frameworks - CakePHP and Symfony.
voice your opinion now!
orm object relational mapping cakephp framework symfony
|
Community Events
Don't see your event here? Let us know!
|