doctrine json type changes can't persisted #6048

Open
opened 2026-01-22 15:25:26 +01:00 by admin · 0 comments
Owner

Originally created by @videni on GitHub (Aug 23, 2018).

Originally assigned to: @Ocramius on GitHub.

orm

        <field name="bindings" column="bindings" type="json" nullable="true"/>

entity

class Demo  {

    protected $bindings = [];

/**
     * @return mixed
     */
    public function getBindings()
    {
        return $this->bindings;
    }

    /**
     * @param mixed $bindings
     *
     * @return self
     */
    public function setBindings($bindings)
    {
        $this->bindings = $bindings;

        return $this;
    }
}

even the bindings changed, doctrine treat it not change at all, how can I save this change to database?

Originally created by @videni on GitHub (Aug 23, 2018). Originally assigned to: @Ocramius on GitHub. orm ``` <field name="bindings" column="bindings" type="json" nullable="true"/> ``` entity ``` class Demo { protected $bindings = []; /** * @return mixed */ public function getBindings() { return $this->bindings; } /** * @param mixed $bindings * * @return self */ public function setBindings($bindings) { $this->bindings = $bindings; return $this; } } ``` even the bindings changed, doctrine treat it not change at all, how can I save this change to database?
admin added the BugMissing Tests labels 2026-01-22 15:25:26 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#6048