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

Pavel Shevaev (JIRA) jira at limb-project.com
Thu Dec 21 00:45:03 MSK 2006


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
            Reporter: Pavel Shevaev
             Fix For: 0.2


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