public function findDraftsBy(array $criteria, array $sort = null, $limit = null, $skip = null)
    {
        $criteria['isDraft'] = true;

        /** @noinspection PhpUndefinedClassInspection */
        /** @noinspection PhpUndefinedMethodInspection */
        return parent::findBy($criteria, $sort, $limit, $skip);
    }
public function findDraftsBy(array $criteria, array $sort = null, $limit = null, $skip = null)
    {
        $criteria['isDraft'] = true;

        /** @noinspection PhpUndefinedClassInspection */
        /** @noinspection PhpUndefinedMethodInspection */
        return parent::findBy($criteria, $sort, $limit, $skip);
    }
public function findDraftsBy ( array $ criteria , array $ sort = null , $ limit = null , $ skip = null ) { $ criteria [ 'isDraft' ] = true ; /** @noinspection PhpUndefinedClassInspection */ /** @noinspection PhpUndefinedMethodInspection */ return parent :: findBy ( $ criteria , $ sort , $ limit , $ skip ) ; }
Find entities in draft mode.

Sets the key 'isDraft' with the value true and proxies to parent::findBy()

@param array $criteria
@param array|null $sort
@param null|int  $limit
@param null|int  $skip

@return \MongoCursor
Find entities in draft mode .