src/Tools/ClassMetadata/ClassMetadata.php
private function checkCollectionCreationOptions(\JPC\MongoDB\ODM\Annotations\Mapping\Document $annotation)
    {
        $options = [];
        if ($annotation->capped) {
            $options["capped"] = true;
            $options["size"] = $annotation->size;

            if ($annotation->max != false) {
                $options["max"] = $annotation->max;
            }
        }

        $this->collectionInfo->setCreationOptions($options);
    }
private function checkCollectionCreationOptions(\JPC\MongoDB\ODM\Annotations\Mapping\Document $annotation)
    {
        $options = [];
        if ($annotation->capped) {
            $options["capped"] = true;
            $options["size"] = $annotation->size;

            if ($annotation->max != false) {
                $options["max"] = $annotation->max;
            }
        }

        $this->collectionInfo->setCreationOptions($options);
    }
private function checkCollectionCreationOptions ( \ JPC \ MongoDB \ ODM \ Annotations \ Mapping \ Document $ annotation ) { $ options = [ ] ; if ( $ annotation -> capped ) { $ options [ "capped" ] = true ; $ options [ "size" ] = $ annotation -> size ; if ( $ annotation -> max != false ) { $ options [ "max" ] = $ annotation -> max ; } } $ this -> collectionInfo -> setCreationOptions ( $ options ) ; }
Check and set collection creation options

@param   \JPC\MongoDB\ODM\Annotations\Mapping\Document   $annotation     Annotation to process
@return  void
Check and set collection creation options