<?php
/**
 *
 * (c) Marco Bunge <marco_bunge@web.de>
 *
 * For the full copyright and license information, please view the LICENSE.txt
 * file that was distributed with this source code.
 *
 * Date: 12.02.2016
 * Time: 10:36
 *
 */

namespace Blast\Db\Data;


trait ImmutableDataObjectTrait
{
    /**
     * Receive data
     * @return array
     */
    public function getData()
    {
        return Helper::receiveDataFromObject($this);
    }
}
<?php
/**
 *
 * (c) Marco Bunge <marco_bunge@web.de>
 *
 * For the full copyright and license information, please view the LICENSE.txt
 * file that was distributed with this source code.
 *
 * Date: 12.02.2016
 * Time: 10:36
 *
 */

namespace Blast\Db\Data;


trait ImmutableDataObjectTrait
{
    /**
     * Receive data
     * @return array
     */
    public function getData()
    {
        return isset($this->data) ? $this->data : [];
    }
}
Fix recursion call on Hook of getData / setData on data objects
Fix recursion call on Hook of getData / setData on data objects
