private function createEdge(array $data = array(), $new = true)
    {
        $edge = new Edge($this->_toolbox, $data, $new);
        $this->attachEventsToPod($edge);

        return $this->setupModel($edge, $edge);
    }
private function createEdge(array $data = array(), $new = true)
    {
        $edge = new Edge($this->_toolbox, $data, $new);
        $this->attachEventsToPod($edge);

        return $this->setupModel($edge, $edge);
    }
private function createEdge ( array $ data = array ( ) , $ new = true ) { $ edge = new Edge ( $ this -> _toolbox , $ data , $ new ) ; $ this -> attachEventsToPod ( $ edge ) ; return $ this -> setupModel ( $ edge , $ edge ) ; }
Convinence function to instantiate an edge, hook up its events and set up its model.
@param array  $data An optional array of data that will be loaded into the edge.
@param string $new  Whether this pod should be marked as new (never saved to the server).
Convinence function to instantiate an edge hook up its events and set up its model .