MongoDB and FosUserBundle - missing column


Blake

When I use data to load data-fixturesinto mymongoDB

private function loadAdminUser()
{
    $userManager = $this->container->get('fos_user.user_manager');

    // Create our user and set details
    $user = $userManager->createUser();
    $user->setUsername('username');
    $user->setEmail('[email protected]');
    $user->setPlainPassword('password');
    //$user->setPassword('3NCRYPT3D-V3R51ON');
    $user->setEnabled(true);
    $user->setRoles(array('ROLE_ADMIN'));
}

or when I use console/terminal

php app/console fos:user:create adminuser --super-admin

Everything works fine (no errors when updating). However, when I try to get data from mongo, it only returns 4 columns:

enter image description here

And FOSUserBudnlethere are about 15(?) default columns in it...what's the matter?

Blake

I'm done. The problem is because the sonata is use Sonata\UserBundle\Document\BaseUser as BaseUsernever from an extension use FOS\UserBundle\Document\User as BaseUser. I have changed it Application\Sonata\UserBundle\Document, now it works

Related


MongoDB and FosUserBundle - missing column

Blake When I use data to load data-fixturesinto mymongoDB private function loadAdminUser() { $userManager = $this->container->get('fos_user.user_manager'); // Create our user and set details $user = $userManager->createUser(); $user->setUserna

MongoDB and FosUserBundle - missing column

Blake When I use data to load data-fixturesinto mymongoDB private function loadAdminUser() { $userManager = $this->container->get('fos_user.user_manager'); // Create our user and set details $user = $userManager->createUser(); $user->setUserna

Remap Doctrine column to match FOSUserBundle

Hernick I want to use FOSUserBundle with an existing user table. But the problem is that my table has different column names than FOSUserBundle. For example, I have "login"columns and bundles are required "username"fields. Also, I have to drop "salt"the column

Add property to FOSUserBundle in Symfony 2 and MongoDB

weird I have installed FOSUserBundle for MongoDB on Symfony 2, I want to add some custom fields, but they are always empty. My UserBundle: <?php namespace Skurty\UserBundle\Document; use FOS\UserBundle\Model\User as BaseUser; use Doctrine\ODM\MongoDB\Mapping\

Add property to FOSUserBundle in Symfony 2 and MongoDB

weird I have installed FOSUserBundle for MongoDB on Symfony 2, I want to add some custom fields, but they are always empty. My UserBundle: <?php namespace Skurty\UserBundle\Document; use FOS\UserBundle\Model\User as BaseUser; use Doctrine\ODM\MongoDB\Mapping\

Missing logical OR in Prisma and MongoDB

User 2026884 I'm trying to use MongoDB as a database with Prisma, but after a few queries I noticed that the Logical OR and NOT are missing. When I switched the database to Postgres, everything was in place (AND, OR, NOT all there). Am I missing something? Pri

Missing } in mongodb insert

Adil Ali | I'm trying to insert data, but unfortunately I keep getting this error that they are missing curly braces after the property list, how is this possible db.students.insert([ { "role_num":1, "first_name":"Adilf", "last_name": "Adli", "marks":97},

Missing } in mongodb insert

Adil Ali | I'm trying to insert data, but unfortunately I keep getting this error that they are missing curly braces after the property list, how is this possible db.students.insert([ { "role_num":1, "first_name":"Adilf", "last_name": "Adli", "marks":97},

Missing logical OR in Prisma and MongoDB

User 2026884 I'm trying to use MongoDB as a database with Prisma, but after a few queries I noticed that the Logical OR and NOT are missing. When I switched the database to Postgres, everything was in place (AND, OR, NOT all there). Am I missing something? Pri

MongoDB geoWithin missing results

Oliver Dixon Querying a very simple dataset returns only 3/4 of the results each time. I will never let Vladivostok (sea cucumber div) show. ask db.locations.find({"location": {"$geoWithin": {"$center" : [[43.1198, 131.8869], 4000]} } }) data { "_id" : O

MongoDB geoWithin missing results

Oliver Dixon Querying a very simple dataset returns only 3/4 of the results each time. I will never let Vladivostok (sea cucumber div) show. ask db.locations.find({"location": {"$geoWithin": {"$center" : [[43.1198, 131.8869], 4000]} } }) data { "_id" : O

MongoDB geoWithin missing results

Oliver Dixon Querying a very simple dataset returns only 3/4 of the results each time. I will never let Vladivostok (sea cucumber div) show. ask db.locations.find({"location": {"$geoWithin": {"$center" : [[43.1198, 131.8869], 4000]} } }) data { "_id" : O

Missing column in Excel spreedshet

user123456789 I have a list of invoices and transfer it to an Excel spreadsheet. All columns have been created into the spreadsheet except the "Work Date" column. Blank in spreadsheet. Here is the code: string Directory = ConfigurationSettings.AppSettings["Dow

Missing "'into'" in separate column (tidyr)

Zhao Hongfeng I constructed metadata for 10 papers. The dput()results are presented as follows: > dput(itemlist) structure(list(title = c("钱学森工程科学思想的实践者 [科普文章]", "超高周疲劳裂纹萌生与初始扩展的特征尺度 [科普文章]", "Proceedings of International conference on Airworthiness & Fatigue

Column names in vector are missing

username I have a dataframe with this format: DF1 <- DF0[i,6:12] (DF0 is the original data frame I read from) The resulting DF1 has the following names: DF1: home - train -bus -car .. - male - female 1 3 0 0 1 What I want to

Missing data for column xxx

PJ1992 I have downloaded multiple metro extracts from openstreetmap as PBF files, it works on the first one and creates the table when I try to import them using osm2pgsql. Then I want to add a column with cityID in planet_osm_ways so that after I try to impor

Android and SQlite - missing a column?

Gabriu Here is my DataBase.java. However, when queried in MainActivity, LogCat shows "No such column: Event_id" static final String tableName="EventList"; static final String colID="Event_id"; static final String colTitle="Title"; static final String colDetail

Missing column in Excel spreedshet

user123456789 I have a list of invoices and transfer it to an Excel spreadsheet. All columns have been created into the spreadsheet except the "Work Date" column. Blank in spreadsheet. Here is the code: string Directory = ConfigurationSettings.AppSettings["Dow

Missing column in Excel spreedshet

user123456789 I have a list of invoices and transfer it into an Excel spreadsheet. All columns have been created into the spreadsheet except the "Work Date" column. Blank in spreadsheet. Here is the code: string Directory = ConfigurationSettings.AppSettings["D

Missing column in Excel spreedshet

user123456789 I have a list of invoices and transfer it into an Excel spreadsheet. All columns have been created into the spreadsheet except the "Work Date" column. Blank in spreadsheet. Here is the code: string Directory = ConfigurationSettings.AppSettings["D

Missing column in PHPMyAdmin export

Collins I exported a table from the server that looks like this... CREATE TABLE IF NOT EXISTS `actions` ( `aid` varchar(255) NOT NULL DEFAULT '0' COMMENT 'Primary Key: Unique actions ID.', `type` varchar(32) NOT NULL DEFAULT '' COMMENT 'The object that tha

hibernate: missing column count

bart van hecklom Here is my entity: @Entity @Table(name="log_shop") public class LogShop { @Id @GeneratedValue private int id; private String platform; @Type(type="org.jadira.usertype.dateandtime.joda.PersistentDateTime") private Dat

Missing column in PHPMyAdmin export

Collins I exported a table from the server that looks like this... CREATE TABLE IF NOT EXISTS `actions` ( `aid` varchar(255) NOT NULL DEFAULT '0' COMMENT 'Primary Key: Unique actions ID.', `type` varchar(32) NOT NULL DEFAULT '' COMMENT 'The object that tha

Deliciouspie django, missing column

Bayek So I'm trying to interact with my yummy django api. I have created the following models in Django: #/models.py from django.db import models from tastypie.utils.timezone import now from django.contrib.auth.models import User class Project(models.Model):