lib/Base/MongoDB/Collection/AbstractCollection.php
/**
     * Initialize
     *
     * @throws Exception\RuntimeException
     * @return null
     */
Initialize
@throws Exception\RuntimeException
@return null
Initialize @throws Exception \ RuntimeException @return null
public function initialize()
    {
        if ($this->isInitialized) {
            return;
        }
        if (!$this->db instanceof \MongoDB) {
            throw new Exception\RuntimeException('This collection does not have an MongoClient setup');
        }
        if (!is_string($this->collection) || $this->collection instanceof \MongoCollection) {
            throw new Exception\RuntimeException('This table object does not have a valid Collection set.');
        }
        $this->isInitialized = true;
    }
public function initialize ( ) { if ( $ this -> isInitialized ) { return ; } if ( ! $ this -> db instanceof \ MongoDB ) { throw new Exception \ RuntimeException ( 'This collection does not have an MongoClient setup' ) ; } if ( ! is_string ( $ this -> collection ) || $ this -> collection instanceof \ MongoCollection ) { throw new Exception \ RuntimeException ( 'This table object does not have a valid Collection set.' ) ; } $ this -> isInitialized = true ; }
Initialize
 @throws Exception\RuntimeException
 @return null
Initialize @throws Exception \ RuntimeException @return null