8000 `spl_object_hash()` vs `spl_object_id()` · Issue #9141 · doctrine/orm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
spl_object_hash() vs spl_object_id() #9141
Closed
@franmomu

Description

@franmomu

BC Break Report

Q A
BC Break yes
Version 2.10

Summary

After #8837, there are some UoW methods that the parameter has changed:

/**
* INTERNAL:
* Clears the property changeset of the entity with the given OID.
*
* @param int $oid The entity's OID.
*
* @return void
*/
public function clearEntityChangeSet($oid)
{
unset($this->entityChangeSets[$oid]);
}

/**
* INTERNAL:
* Sets a property value of the original data array of an entity.
*
* @param int $oid
* @param string $property
* @param mixed $value
*
* @return void
*
* @ignore
*/
public function setOriginalEntityProperty($oid, $property, $value)
{
$this->originalEntityData[$oid][$property] = $value;
}

Because the OID is different, at first I thought they were internal, but apparently it is some kind of internal notes.

Previous behavior

Before this, for calling these method you should generate the oid with spl_object_hash()

Current behavior

Now that oid is not valid anymore.

How to reproduce

Tests started to fail in https://github.com/doctrine-extensions/DoctrineExtensions

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0