Using entity class by alias

1 view
Skip to first unread message

lamberski

unread,
Sep 18, 2010, 6:05:44 AM9/18/10
to Outlet ORM
I was using Outlet lately and really like it. The only that I was
missing is possibility to use entity classes by alias. I use PERL
class names (Application_Entity_Bug) and would love to e.g. load
entity like this: $orm->load('Bug'). It could be additional key in
configuration of entity:

'Application_Entity_Bug' => array(
'table' => 'prefix_bug',
'alias' => 'Bug',
'props' => array(
...
),
)

I found that something similar is used in Outlet to set custom setter/
getter names (Beau's thread:
http://groups.google.com/group/outlet-orm/browse_thread/thread/896f536ec64d8060/39c86d14665c3959).
If I configure name of association from 'Application_Entity_Project'
to 'Project', it's also used in e.g. ->with() - ->with('Project').

Is there any chance to see similar feature in future versions of
Outlet?
Reply all
Reply to author
Forward
0 new messages