src/MultiTierArchitecture/Mapper/Definition/EntityMapperAbstract.php
public function getMappedSecondAttributes()
    {
        $attributes = [];

        /* Only the first array in data will be examined, and map its attributes to db attributes,
           the attributes that are not present, will not be included
        */
        if (is_array($this->data[0])) {
            foreach ($this->data[0] as $attribute => $attributeValue) {
                if (array_key_exists($attribute, $this->mappingFirstEntityToSecondEntityAttributes)) {
                    $attributes[$this->mappingFirstEntityToSecondEntityAttributes[$attribute]] = $attributeValue;
                }
            }
        }

        return $attributes;
    }
public function getMappedSecondAttributes()
    {
        $attributes = [];

        /* Only the first array in data will be examined, and map its attributes to db attributes,
           the attributes that are not present, will not be included
        */
        if (is_array($this->data[0])) {
            foreach ($this->data[0] as $attribute => $attributeValue) {
                if (array_key_exists($attribute, $this->mappingFirstEntityToSecondEntityAttributes)) {
                    $attributes[$this->mappingFirstEntityToSecondEntityAttributes[$attribute]] = $attributeValue;
                }
            }
        }

        return $attributes;
    }
public function getMappedSecondAttributes ( ) { $ attributes = [ ] ; /* Only the first array in data will be examined, and map its attributes to db attributes,
           the attributes that are not present, will not be included
        */ if ( is_array ( $ this -> data [ 0 ] ) ) { foreach ( $ this -> data [ 0 ] as $ attribute => $ attributeValue ) { if ( array_key_exists ( $ attribute , $ this -> mappingFirstEntityToSecondEntityAttributes ) ) { $ attributes [ $ this -> mappingFirstEntityToSecondEntityAttributes [ $ attribute ] ] = $ attributeValue ; } } } return $ attributes ; }
Get mapped attributes from the 'data' member mapped to second attributes

@return array Attributes after mapping them into second attributes
Get mapped attributes from the data member mapped to second attributes