protected function addCriteriaToPositionQuery($query)
    {
        $contents = ContentFolderQuery::create()
            ->filterByFolderId($this->getDefaultFolderId())
            ->filterByDefaultFolder(true)
            ->select('content_id')
            ->find();

        // Filtrer la requete sur ces produits
        if ($contents != null) {
            $query->filterById($contents, Criteria::IN);
        }
    }
protected function addCriteriaToPositionQuery($query)
    {
        $contents = ContentFolderQuery::create()
            ->filterByFolderId($this->getDefaultFolderId())
            ->filterByDefaultFolder(true)
            ->select('content_id')
            ->find();

        // Filtrer la requete sur ces produits
        if ($contents != null) {
            $query->filterById($contents, Criteria::IN);
        }
    }
protected function addCriteriaToPositionQuery ( $ query ) { $ contents = ContentFolderQuery :: create ( ) -> filterByFolderId ( $ this -> getDefaultFolderId ( ) ) -> filterByDefaultFolder ( true ) -> select ( 'content_id' ) -> find ( ) ; // Filtrer la requete sur ces produits if ( $ contents != null ) { $ query -> filterById ( $ contents , Criteria :: IN ) ; } }
Calculate next position relative to our parent

@param ContentQuery $query
@deprecated since 2.3, and will be removed in 2.4
Calculate next position relative to our parent