You are viewing a plain text version of this content. The canonical link for it is here.
Posted to zeta-issues@incubator.apache.org by "Petar Španja (JIRA)" <ji...@apache.org> on 2010/10/27 08:13:21 UTC
[jira] Created: (ZETACOMP-20) Wrong indexing of database result
Wrong indexing of database result
---------------------------------
Key: ZETACOMP-20
URL: https://issues.apache.org/jira/browse/ZETACOMP-20
Project: Zeta Components
Issue Type: Bug
Components: PersistentObject
Environment: All
Reporter: Petar Španja
Priority: Blocker
Class ezcPersistentIdentityRelationObjectExtractor, file PersistentObject/src/session_decorators/identity/relation_object_extractor.php
In methods extractObjectsWithRelatedObjects, extractObjectsRecursive and setObjectState
$property->propertyName (can be mix-cased) is used to index $result array, where index keys are in lower case (PDO::CASE_LOWER is used)
This makes impossible to use PersistentObject with relations.
Resolution is simple, $property->propertyName should be lowercased:
strtolower($property->propertyName)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (ZETACOMP-20) Wrong indexing of database result
Posted by "Petar Španja (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ZETACOMP-20?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Petar Španja updated ZETACOMP-20:
---------------------------------
Priority: Major (was: Blocker)
> Wrong indexing of database result
> ---------------------------------
>
> Key: ZETACOMP-20
> URL: https://issues.apache.org/jira/browse/ZETACOMP-20
> Project: Zeta Components
> Issue Type: Bug
> Components: PersistentObject
> Environment: All
> Reporter: Petar Španja
> Original Estimate: 0.17h
> Remaining Estimate: 0.17h
>
> Class ezcPersistentIdentityRelationObjectExtractor, file PersistentObject/src/session_decorators/identity/relation_object_extractor.php
> In methods extractObjectsWithRelatedObjects, extractObjectsRecursive and setObjectState
> $property->propertyName (can be mix-cased) is used to index $result array, where index keys are in lower case (PDO::CASE_LOWER is used)
> This makes impossible to use PersistentObject with relations.
> Resolution is simple, $property->propertyName should be lowercased:
> strtolower($property->propertyName)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.