public function pushData(EntityInterface $entity)
    {
        if ($this->isMany()) {
            $this->data[] = $entity;
            return $this;
        }
        $this->data = $entity;
        return $this;
    }
public function pushData(EntityInterface $entity)
    {
        if ($this->isMany()) {
            $this->data[] = $entity;
            return $this;
        }
        $this->data = $entity;
        return $this;
    }
public function pushData ( EntityInterface $ entity ) { if ( $ this -> isMany ( ) ) { $ this -> data [ ] = $ entity ; return $ this ; } $ this -> data = $ entity ; return $ this ; }
Applys the relationship data.

@param   EntityInterface    $entity
@return  self
Applys the relationship data .