-
-
Save trq/f979e6844d729c509a58 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Im getting this error: | |
Notice: Undefined index: userId in /var/www/html/symfony2/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php line 688 | |
class UsersType extends AbstractType | |
{ | |
/** | |
* @param FormBuilderInterface $builder | |
* @param array $options | |
*/ | |
public function buildForm(FormBuilderInterface $builder, array $options) | |
{ | |
$builder | |
->add('username') | |
->add('password') | |
->add('fields', new UserFieldsType()) | |
; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Acme\DemoBundle\Entity\Users: | |
type: entity | |
table: users | |
id: | |
id: | |
type: integer | |
generator: | |
strategy: AUTO | |
fields: | |
username: | |
type: text | |
nullable: true | |
length: null | |
fixed: false | |
comment: '' | |
password: | |
type: text | |
nullable: true | |
length: null | |
fixed: false | |
comment: '' | |
oneToOne: | |
fields: | |
targetEntity: UserFields | |
cascade: | |
- all | |
joinColumns: | |
user_fields_id: | |
referencedColumnName: id | |
orphanRemoval: false | |
lifecycleCallbacks: { } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Acme\DemoBundle\Entity\UserFields: | |
type: entity | |
table: user_fields | |
id: | |
id: | |
type: integer | |
id: true | |
generator: | |
strategy: IDENTITY | |
fields: | |
age: | |
type: text | |
nullable: true | |
length: null | |
fixed: false | |
comment: '' | |
lifecycleCallbacks: { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment