protected function propertiesFromAttributes(): array
    {
        // Get all managed properties
        $propertyNames = $this->entityMap->getProperties();

        $propertyAttributes = array_only($this->attributes, $propertyNames);
        $attributesArray = array_except($this->attributes, $propertyNames);

        $attributesArrayName = $this->entityMap->getAttributesArrayName();

        if ($attributesArrayName) {
            $propertyAttributes[$attributesArrayName] = $attributesArray;
        }

        return $propertyAttributes;
    }
protected function propertiesFromAttributes(): array
    {
        // Get all managed properties
        $propertyNames = $this->entityMap->getProperties();

        $propertyAttributes = array_only($this->attributes, $propertyNames);
        $attributesArray = array_except($this->attributes, $propertyNames);

        $attributesArrayName = $this->entityMap->getAttributesArrayName();

        if ($attributesArrayName) {
            $propertyAttributes[$attributesArrayName] = $attributesArray;
        }

        return $propertyAttributes;
    }
protected function propertiesFromAttributes ( ) : array { // Get all managed properties $ propertyNames = $ this -> entityMap -> getProperties ( ) ; $ propertyAttributes = array_only ( $ this -> attributes , $ propertyNames ) ; $ attributesArray = array_except ( $ this -> attributes , $ propertyNames ) ; $ attributesArrayName = $ this -> entityMap -> getAttributesArrayName ( ) ; if ( $ attributesArrayName ) { $ propertyAttributes [ $ attributesArrayName ] = $ attributesArray ; } return $ propertyAttributes ; }
Convert internal representation of attributes to an array of properties
that can hydrate the actual object.

@return array
Convert internal representation of attributes to an array of properties that can hydrate the actual object .