public function getMongoCollectionName()
    {
        // Get full namespaced class name
        $class = get_class($this);
        $split_array = explode('\\', $class);
        // Split into namespaces and get the last namespace as the class name
        $final = $split_array[count($split_array) - 1];
        // Cut the final 10 characters off of the class (Collection from UsersCollection) and return just the collection
        return Inflector::tableize(substr($final, 0, -10));
    }
public function getMongoCollectionName()
    {
        // Get full namespaced class name
        $class = get_class($this);
        $split_array = explode('\\', $class);
        // Split into namespaces and get the last namespace as the class name
        $final = $split_array[count($split_array) - 1];
        // Cut the final 10 characters off of the class (Collection from UsersCollection) and return just the collection
        return Inflector::tableize(substr($final, 0, -10));
    }
public function getMongoCollectionName ( ) { // Get full namespaced class name $ class = get_class ( $ this ) ; $ split_array = explode ( '\\' , $ class ) ; // Split into namespaces and get the last namespace as the class name $ final = $ split_array [ count ( $ split_array ) - 1 ] ; // Cut the final 10 characters off of the class (Collection from UsersCollection) and return just the collection return Inflector :: tableize ( substr ( $ final , 0 , - 10 ) ) ; }
Infers the name of the Mongo collection inside of the database based on the namespace of the current class.

@return string
Infers the name of the Mongo collection inside of the database based on the namespace of the current class .