protected function storeEntity($entity)
    {
        $this->checkEntityType($entity);

        $store = new Store($this->aggregate($entity), $this->newQueryBuilder());

        return $store->execute();
    }
protected function storeEntity($entity)
    {
        $this->checkEntityType($entity);

        $store = new Store($this->aggregate($entity), $this->newQueryBuilder());

        return $store->execute();
    }
protected function storeEntity ( $ entity ) { $ this -> checkEntityType ( $ entity ) ; $ store = new Store ( $ this -> aggregate ( $ entity ) , $ this -> newQueryBuilder ( ) ) ; return $ store -> execute ( ) ; }
Store a single entity into the database.

@param Mappable $entity

@throws \InvalidArgumentException
@throws MappingException

@return \Analogue\ORM\Entity
Store a single entity into the database .