Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Invalid
-
Affects Version/s: 2.x
-
Fix Version/s: None
-
Component/s: Tools
-
Security Level: All
-
Labels:None
-
Environment:Yaml mapping, Doctrine 2.0.5
Description
got
Profiles:
type: entity
table: profiles
repositoryClass: Repositories\Base
inheritanceType: JOINED
discriminatorColumn:
name: profiletype
type: integer
length: 11
discriminatorMap:
1: Personal
2: Work
3: Business
fields:
id:
id: true
type: integer
generator:
strategy: IDENTITY
firstname:
type: string
length: 255
fixed: false
nullable: true
lastname:
type: string
length: 255
fixed: false
nullable: true
email:
type: string
length: 255
fixed: false
nullable: true
and
Business:
type: entity
table: business
repositoryClass: Repositories\Base
fields:
businessname:
type: string
length: 255
fixed: false
nullable: true
and also have
class Business extends Profiles
{
..
}
which should be the proper mapping
but still get
[Doctrine\ORM\Mapping\MappingException]
No identifier/primary key specified for Entity 'Business'. Every Entity must have an identifier/primary key.
Formatting