Part of the EllisLab Network
   
2 of 2
2
Outlet ORM
Posted: 18 November 2009 02:47 AM   [ Ignore ]   [ # 11 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  327
Joined  08-29-2008

How does this compare to Datamapper OverZelous edition?

 Signature 

421 Entertainment :: YAAS - Yet Another Authentication System :: Error Logger

Profile
 
 
Posted: 25 November 2009 02:16 PM   [ Ignore ]   [ # 12 ]  
Grad Student
Avatar
Rank
Total Posts:  84
Joined  04-04-2007
fgrehm - 31 October 2008 01:42 PM

I’m actually using the repository pattern but to make things simple, here’s a sample usage:

class OrderController extends Controller
{
    
function show($id)
    
{
        $this
->load->outlet();
        
        
$outlet = Outlet::getInstance();
        
$order = $outlet->load('Order', $id);
        
// display order data...
    
}
}

Hi (Olá) Fábio,

Could you elaborate your example a little bit further?

You gave a great introduction to Outlet, and that is the problem because I’m more interested now (also searching for an ORM) smile

How would the model look like in this “repository” pattern? Is this the same as a “Domain Driven Design” pattern?

I’m just trying to imagine the model after you presented the controller smile

 Signature 

Programming is both a science and an art.
——
http://twitter.com/MarcoBarbosa
http://marcobarbosa.com

Profile
 
 
   
2 of 2
2
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 819, on March 11, 2010 11:15 AM
Total Registered Members: 120493 Total Logged-in Users: 41
Total Topics: 126564 Total Anonymous Users: 7
Total Replies: 665426 Total Guests: 371
Total Posts: 791990    
Members ( View Memberlist )