public function getRawAttributes(): array
    {
        $attributes = $this->wrappedEntity->getEntityAttributes();

        foreach ($this->entityMap->getNonEmbeddedRelationships() as $relation) {
            unset($attributes[$relation]);
        }

        if ($this->entityMap->getInheritanceType() == 'single_table') {
            $attributes = $this->addDiscriminatorColumn($attributes);
        }

        $attributes = $this->entityMap->getColumnNamesFromAttributes($attributes);

        $attributes = $this->flattenEmbeddables($attributes);

        $foreignKeys = $this->getForeignKeyAttributes();

        return $this->mergeForeignKeysWithAttributes($foreignKeys, $attributes);
    }
public function getRawAttributes(): array
    {
        $attributes = $this->wrappedEntity->getEntityAttributes();

        foreach ($this->entityMap->getNonEmbeddedRelationships() as $relation) {
            unset($attributes[$relation]);
        }

        if ($this->entityMap->getInheritanceType() == 'single_table') {
            $attributes = $this->addDiscriminatorColumn($attributes);
        }

        $attributes = $this->entityMap->getColumnNamesFromAttributes($attributes);

        $attributes = $this->flattenEmbeddables($attributes);

        $foreignKeys = $this->getForeignKeyAttributes();

        return $this->mergeForeignKeysWithAttributes($foreignKeys, $attributes);
    }
public function getRawAttributes ( ) : array { $ attributes = $ this -> wrappedEntity -> getEntityAttributes ( ) ; foreach ( $ this -> entityMap -> getNonEmbeddedRelationships ( ) as $ relation ) { unset ( $ attributes [ $ relation ] ) ; } if ( $ this -> entityMap -> getInheritanceType ( ) == 'single_table' ) { $ attributes = $ this -> addDiscriminatorColumn ( $ attributes ) ; } $ attributes = $ this -> entityMap -> getColumnNamesFromAttributes ( $ attributes ) ; $ attributes = $ this -> flattenEmbeddables ( $ attributes ) ; $ foreignKeys = $ this -> getForeignKeyAttributes ( ) ; return $ this -> mergeForeignKeysWithAttributes ( $ foreignKeys , $ attributes ) ; }
Get Raw Entity's attributes, as they are represented
in the database, including value objects, foreign keys,
and discriminator column.

@return array
Get Raw Entity s attributes as they are represented in the database including value objects foreign keys and discriminator column .