Task #6520

Differentiate between NULL and empty array/SplObjectStorage

Added by Karsten Dambekalns over 5 years ago. Updated almost 5 years ago.

Status:Resolved Start date:2010-06-18
Priority:Should have Due date:
Assigned To:Karsten Dambekalns % Done:

100%

Category:Persistence
Target version:TYPO3 Flow Base Distribution - 1.0 alpha 10 Estimated time:5.00 hours
Sprint: Has patch:
PHP Version: Complexity:

Description

When reconstituting objects we should only thaw array/SplObjectStorage if we had that when persisting and leave NULL in place otherwise.

Info: thawProperties() NULL check; signatures of mapArray(), mapSplObjectStorage(); collectProperties()


Related issues

related to TYPO3.Flow - Task #8299: Clean up handling of NULL in queries Resolved 2010-06-16

Associated revisions

Revision 4499b4ba
Added by Karsten Dambekalns about 5 years ago

[~TASK] FLOW3 (Persistence): When persisting NULL values are now recorded and collection (array, SplObjectStorage) properties are restored as NULL if they contained NULL, resolves #6520.
[~TASK] FLOW3 (Persistence): Equality comparison in a query now works correctly when comparing against NULL, relates to #8299.
[+API] FLOW3 (Persistence): Query::isEmpty() has been added and can check for empty collection properties, relates to #8299.
[~TASK] FLOW3 (Persistence): The like() constraint now can be used case-insensitive (like equals); constraints do stricter checks on property and operand types.

Revision 741b038d
Added by Karsten Dambekalns about 5 years ago

[~TASK] FLOW3 (Persistence): When persisting NULL values are now recorded and collection (array, SplObjectStorage) properties are restored as NULL if they contained NULL, resolves #6520.
[~TASK] FLOW3 (Persistence): Equality comparison in a query now works correctly when comparing against NULL, relates to #8299.
[+API] FLOW3 (Persistence): Query::isEmpty() has been added and can check for empty collection properties, relates to #8299.
[~TASK] FLOW3 (Persistence): The like() constraint now can be used case-insensitive (like equals); constraints do stricter checks on property and operand types.

Revision c6c6d3af
Added by Karsten Dambekalns about 5 years ago

[~TASK] FLOW3 (Persistence): Adjusted PersistenceFramework object data format.txt to updated reality, relates to #6520.

History

#1 Updated by Karsten Dambekalns about 5 years ago

  • Status changed from New to Accepted
  • Start date changed from 2010-02-18 to 2010-06-18
  • Estimated time set to 5.00

#2 Updated by Karsten Dambekalns about 5 years ago

  • Target version set to 1.0 alpha 10

#3 Updated by Karsten Dambekalns about 5 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r4604.

Also available in: Atom PDF