You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Outlet ORM
Is there a way to configure the names of the getters and setters for
the relationships?
I use _ packing/class naming conventions ( s3a_feed_Feed ) but would
like to have the option to use methods and properties named more after
the end of the package ( i.e., the "Class Name" ) for my
relationships. For example, I would like to be able to use getFeeds()
instead of gets3a_feed_Feeds() ...
Short of specifying the name of the getters and setters directly
( looks like three, get*, set* and add* ), I'd be satisfied to just
specify the singular name to override the class name ( i.e., I could
specify "Feed" to override the class name of "s3a_feed_Feed" )...
Thanks!
Alvaro Carrasco
unread,
Dec 18, 2008, 9:37:58 PM12/18/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to outle...@googlegroups.com
You can do that on the options for the association. Use the 'name' option: ... array('one-to-many', 's3a_feed_Feed', array('key'=>'WhateverTheKeyIs', 'name'=>'Feed')) ...
That should create methods: setFeeds, getFeeds, addFeed.