src/Norm/Cursor.php
public function toArray($plain = false)
    {
        $result = array();

        foreach ($this as $key => $value) {
            if ($plain) {
                $result[] = $value->toArray();
            } else {
                $result[] = $this->connection->unmarshall($value);
            }
        }

        return $result;
    }
public function toArray($plain = false)
    {
        $result = array();

        foreach ($this as $key => $value) {
            if ($plain) {
                $result[] = $value->toArray();
            } else {
                $result[] = $this->connection->unmarshall($value);
            }
        }

        return $result;
    }
public function toArray ( $ plain = false ) { $ result = array ( ) ; foreach ( $ this as $ key => $ value ) { if ( $ plain ) { $ result [ ] = $ value -> toArray ( ) ; } else { $ result [ ] = $ this -> connection -> unmarshall ( $ value ) ; } } return $ result ; }
Extract data into array of models.

@param boolean $plain When true will return array of associative array.

@return array
Extract data into array of models .