Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6698001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:31:35+00:00 2026-05-26T06:31:35+00:00

I have the following model: class Mix private() extends MongoRecord[Mix] with ObjectIdPk[Mix] { def

  • 0

I have the following model:

class Mix private() extends MongoRecord[Mix] with ObjectIdPk[Mix] {

    def meta = Mix

    object title extends StringField(this, 50)
    object description extends StringField(this, 500)
    object link extends StringField(this, 250)
    object date extends DateField(this)

}

object Mix extends Mix with MongoMetaRecord[Mix] 

Whenever I try and save a record, instead of saving in the collection “Mixes”, it creates a new one called “Mixs” and populates that instead.

Is there something I should be defining to tell it to use the correctly named “Mixes” collection?

This seems to be an incorrect pluralization of the word mix, but am unsure how to correct it.

Thanks in advance for any help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T06:31:36+00:00Added an answer on May 26, 2026 at 6:31 am

    MongoRecord simply adds an ‘s’ to your Object’s name and doesn’t know anything about other pluralisation rules. In order to fix this, you need to override

    override def collectionName = "Mixes"
    

    in object Mix.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following model: class Recording private() extends MongoRecord[Recording] with ObjectIdPk[Recording] { def
I have the following abilities model: class Ability include CanCan::Ability def initialize(user) user ||=
I have the following model class Comment extends AppModel { var $useTable = comments;
I have the following model: class A(models.Model): name = models.CharField(max_length=50) content_type = models.ForeignKey(ContentType) This
I have the following model in django: class Node(models.Model): name = models.CharField(max_length=255) And this
I have the following model: class mark(models.Model): title=models.CharField(max_length=35) url=models.URLField(max_length=200) user=models.ManyToManyField(User,blank=True) and then I use
I have the following model: class Entry include Mongoid::Document field :title, type: String field
I have the following Model class: package com.swaranga.model; public final class Book { private
I have the following model class (simplified) class A{ private String name; private List<B>
I have the following model: class Book(models.Model): title = models.CharField(max_length=100) quantity = models.IntegerField() in_stock

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.