public function reorder()
    {
        $store = $this->getRepository()->getStore();
        $query = $this->getScopedQuery($this->_mixer);
        $store->execute('SET @order = 0');
        $query->update('@col(ordering) = (@order := @order + 1)')->order('ordering', 'ASC');
        $store->execute($query);
    }
public function reorder()
    {
        $store = $this->getRepository()->getStore();
        $query = $this->getScopedQuery($this->_mixer);
        $store->execute('SET @order = 0');
        $query->update('@col(ordering) = (@order := @order + 1)')->order('ordering', 'ASC');
        $store->execute($query);
    }
public function reorder ( ) { $ store = $ this -> getRepository ( ) -> getStore ( ) ; $ query = $ this -> getScopedQuery ( $ this -> _mixer ) ; $ store -> execute ( 'SET @order = 0' ) ; $ query -> update ( '@col(ordering) = (@order := @order + 1)' ) -> order ( 'ordering' , 'ASC' ) ; $ store -> execute ( $ query ) ; }
Reorders all the entities.
Reorders all the entities .