[limb-issues] Updated: (AR-9) Assume default relation properties for simple cases

Sergey Yudin (JIRA) jira at limb-project.com
Tue Mar 13 16:50:05 MSK 2007


     [ http://jira.limb-project.com/browse/AR-9?page=all ]

Sergey Yudin updated AR-9:
--------------------------

        Fix Version/s: 0.3
                           (was: 0.2)
    Affects Version/s: 0.3

> Assume default relation properties for simple cases
> ---------------------------------------------------
>
>                 Key: AR-9
>                 URL: http://jira.limb-project.com/browse/AR-9
>             Project: ACTIVE_RECORD
>          Issue Type: Improvement
>    Affects Versions: 0.3
>            Reporter: Pavel Shevaev
>             Fix For: 0.3
>
>
> It would be really nice if lmbActiveRecord could "guess" relation properties if they are not set. Once implemented the following class declaration:
> class Person extends lmbActiveRecord
> {
>   protected $_has_one = array('social_security' => array('field' => 'social_security_id',
>                                                          'class' => 'SocialSecurity'));
> }
> ..could be rewritten as:
> class Person extends lmbActiveRecord
> {
>   protected $_has_one = array('social_security');
> }
> And that's it!

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.limb-project.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the limb-issues mailing list