private function mergeMagicFields(&$data)
    {
        if (isset($data['objectId']))
        {
            $this->objectId = $data['objectId'];
            unset($data['objectId']);
        }
        if (isset($data['createdAt']))
        {
            $this->createdAt = new \DateTime($data['createdAt']);
            unset($data['createdAt']);
        }
        if (isset($data['updatedAt']))
        {
            $this->updatedAt = new \DateTime($data['updatedAt']);
            unset($data['updatedAt']);
        }
        if (isset($data['ACL']))
        {
            $acl = AVACL::_createACLFromJSON($data['ACL']);
            $this->serverData['ACL'] = $acl;
            unset($data['ACL']);
        }

    }
private function mergeMagicFields(&$data)
    {
        if (isset($data['objectId']))
        {
            $this->objectId = $data['objectId'];
            unset($data['objectId']);
        }
        if (isset($data['createdAt']))
        {
            $this->createdAt = new \DateTime($data['createdAt']);
            unset($data['createdAt']);
        }
        if (isset($data['updatedAt']))
        {
            $this->updatedAt = new \DateTime($data['updatedAt']);
            unset($data['updatedAt']);
        }
        if (isset($data['ACL']))
        {
            $acl = AVACL::_createACLFromJSON($data['ACL']);
            $this->serverData['ACL'] = $acl;
            unset($data['ACL']);
        }

    }
private function mergeMagicFields ( & $ data ) { if ( isset ( $ data [ 'objectId' ] ) ) { $ this -> objectId = $ data [ 'objectId' ] ; unset ( $ data [ 'objectId' ] ) ; } if ( isset ( $ data [ 'createdAt' ] ) ) { $ this -> createdAt = new \ DateTime ( $ data [ 'createdAt' ] ) ; unset ( $ data [ 'createdAt' ] ) ; } if ( isset ( $ data [ 'updatedAt' ] ) ) { $ this -> updatedAt = new \ DateTime ( $ data [ 'updatedAt' ] ) ; unset ( $ data [ 'updatedAt' ] ) ; } if ( isset ( $ data [ 'ACL' ] ) ) { $ acl = AVACL :: _createACLFromJSON ( $ data [ 'ACL' ] ) ; $ this -> serverData [ 'ACL' ] = $ acl ; unset ( $ data [ 'ACL' ] ) ; } }
Handle merging of special fields for the object.

@param array &$data Data received from server.

@return null
Handle merging of special fields for the object .