honeybee icon indicating copy to clipboard operation
honeybee copied to clipboard

Helper method to get full payload on AR events

Open MrHash opened this issue 9 years ago • 1 comments

This kind of method would be helpful:

    public function getPayload()
    {
        $data = $this->data;
        foreach ($this->getEmbeddedEntityEvents() as $position => $embeddedEntityEvent) {
            $data[$embeddedEntityEvent->getParentAttributeName()][$position] = $embeddedEntityEvent->getData();
        }
        return $data;
    }

MrHash avatar Aug 26 '16 12:08 MrHash

Or getData() should return this

MrHash avatar Aug 26 '16 13:08 MrHash