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 7872785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:18:51+00:00 2026-06-03T02:18:51+00:00

i made a new bundle, made a new controller made few entities entity does

  • 0

i made a new bundle,
made a new controller
made few entities

entity does get in the database when i use php console dotrine:schema:update –force

i make a form,
form pops great,
when i submit i use

if ($form->isValid()) {
                // perform some action, such as saving the task to the database

                $em = $this->getDoctrine()->getEntityManager();
                $em->persist($type);
                $em->flush();


                return $this->redirect($this->generateUrl('_success'));
            }

i get a big fat error :

Class Naus\Biobalance\Entity\Sample is not a valid entity or mapped
super class.

i’ve double checked my top..
and use Naus\bundle\Entity\Sample; is mentioned like it is supposed to be ?
no clear answers online, hope someone can help..

the first lines of the entity (on request)

<?php 

namespace Naus\Biobalance\Entity;

use Doctrine\ORM\EntityManager;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(name="sample")
 */
class Sample
{

regarding the appkernel :

<?php

use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
            new Symfony\Bundle\SecurityBundle\SecurityBundle(),
            new Symfony\Bundle\TwigBundle\TwigBundle(),
            new Symfony\Bundle\MonologBundle\MonologBundle(),
            new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
            new Symfony\Bundle\DoctrineBundle\DoctrineBundle(),
            new Symfony\Bundle\DoctrineFixturesBundle\DoctrineFixturesBundle(),
            new Symfony\Bundle\AsseticBundle\AsseticBundle(),
            new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
            new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(),

            new Knplabs\Bundle\MenuBundle\KnplabsMenuBundle(),
            new Knplabs\Bundle\SnappyBundle\KnplabsSnappyBundle(),
            new Knp\Bundle\PaginatorBundle\KnpPaginatorBundle(),
            new AntiMattr\GoogleBundle\GoogleBundle(),
            new Fp\OpenIdBundle\FpOpenIdBundle(),

            new Naus\Api\NausApi(),
            new Naus\App\NausApp(),
            new Naus\Cms\NausCms(),
            new Naus\Crm\NausCrm(),
            new Naus\Event\NausEvent(),
            new Naus\Form\NausForm(),
            new Naus\Invoicing\NausInvoicing(),
            new Naus\Mail\NausMail(),
            new Naus\Media\NausMedia(),
            new Naus\Member\NausMember(),
            new Naus\Meta\NausMeta(),
            new Naus\Project\NausProject(),
            new Naus\Vacancy\NausVacancy(),
            new Naus\Workgroup\NausWorkgroup(),
            new Naus\Biobalance\NausBiobalance(),
  • 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-06-03T02:18:53+00:00Added an answer on June 3, 2026 at 2:18 am

    Apparently, setting the auto_mapping setting found in config.yml solves the problem.

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

Sidebar

Related Questions

I can't get rails 3.1RC4 to work with mysql...? I just made a new
I made a new action filter (attribute, similar to [Authorize]) which authorizes access to
I have made a new Excel 2010 Add-in project, with VS10. When I run
I made the following simulation: byte[] b = new byte[256]; for (int i =
I added a new file F1 and made changes to another file F2 but
I made a small winforms application to monitor a certain folder for new pdf
I have a new app that I made and put in the store yesterday.
i have made a function to add new upload and description inputs onClick. How
How can I create a new Exception different from the pre-made types? public class
When we are writing a new version of a library we made (in C),

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.