public function insertEntity(EntityInterface $entity)
    {
        $insert = $this->getSql()->insert();
        $insert->values($this->getHydrator()->extract($entity));

        try {
            $this->insertWith($insert);
        } catch (RuntimeException $e) {
            return false;
        }

        return true;
    }
public function insertEntity(EntityInterface $entity)
    {
        $insert = $this->getSql()->insert();
        $insert->values($this->getHydrator()->extract($entity));

        try {
            $this->insertWith($insert);
        } catch (RuntimeException $e) {
            return false;
        }

        return true;
    }
public function insertEntity ( EntityInterface $ entity ) { $ insert = $ this -> getSql ( ) -> insert ( ) ; $ insert -> values ( $ this -> getHydrator ( ) -> extract ( $ entity ) ) ; try { $ this -> insertWith ( $ insert ) ; } catch ( RuntimeException $ e ) { return false ; } return true ; }
Insert an new entity

@param EntityInterface $entity

@return bool
Insert an new entity