[limb-issues] ! Updated: (AR-14) lmbActiveRecord does not support value objects that stored in a field with name different to value object relation

Sergey Yudin (JIRA) jira at limb-project.com
Wed Sep 19 12:35:55 MSD 2007


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

Sergey Yudin updated AR-14:
---------------------------

    Description: 
lmbActiveRecord does not support value objects that stored in a field with name different to value object relation name

[code]
class Product extends lmbActiveRecord
{

  protected $_composed_of = array('large_image' => array('field' => 'large_image_id',
                                                                                                          'class' => 'ProfileFile',
                                                                                                          'getter' => 'getFileId'));
}
[/code]
This will not work.

If we set what value object field name should be the same as value object relation name so 'field' property in relation description is not needed actually.


  was:
lmbActiveRecord does not support value objects that stored in a field with name different to value object relation

[code]
class Product extends lmbActiveRecord
{

  protected $_composed_of = array('large_image' => array('field' => 'large_image_id',
                                                                                                          'class' => 'ProfileFile',
                                                                                                          'getter' => 'getFileId'));
}
[/code]
This will not work.

If we set what value object field name should be the same as value object relation name so 'field' property in relation description is not needed actually.



> lmbActiveRecord does not support value objects that stored in a field with name different to value object relation
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: AR-14
>                 URL: http://jira.limb-project.com/browse/AR-14
>             Project: ACTIVE_RECORD
>          Issue Type: Bug
>            Reporter: Sergey Yudin
>         Assigned To: Pavel Shevaev
>
> lmbActiveRecord does not support value objects that stored in a field with name different to value object relation name
> [code]
> class Product extends lmbActiveRecord
> {
>   protected $_composed_of = array('large_image' => array('field' => 'large_image_id',
>                                                                                                           'class' => 'ProfileFile',
>                                                                                                           'getter' => 'getFileId'));
> }
> [/code]
> This will not work.
> If we set what value object field name should be the same as value object relation name so 'field' property in relation description is not needed actually.

-- 
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