source/Spiral/ORM/Entities/RelationMap.php
public function extractRelations(array &$data)
    {
        //Fetch all relations
        $relations = array_intersect_key($data, $this->schema);

        foreach ($relations as $name => $relation) {
            $this->relations[$name] = $relation;
            unset($data[$name]);
        }
    }
public function extractRelations(array &$data)
    {
        //Fetch all relations
        $relations = array_intersect_key($data, $this->schema);

        foreach ($relations as $name => $relation) {
            $this->relations[$name] = $relation;
            unset($data[$name]);
        }
    }
public function extractRelations ( array & $ data ) { //Fetch all relations $ relations = array_intersect_key ( $ data , $ this -> schema ) ; foreach ( $ relations as $ name => $ relation ) { $ this -> relations [ $ name ] = $ relation ; unset ( $ data [ $ name ] ) ; } }
Extract relations data from given entity fields.

@param array $data
Extract relations data from given entity fields .