Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:Mac OSX 10.6.8 running MAMP Pro 2.0.5 with PHP 5.3.6 ... this is a local symfony install which is also using the apostrophe cms.
Description
Was able to resolve this - see comment below - but still think it counts as a bug since the source of the error is so unclear
Hello,
I'm familiarizing myself with symfony at this point, but doctrine seems like a very accessible ORM tool overall. This install will also use the apostrophe plugin though that is more a client request and it is seeming to complicate a lot of issues from what I can see. Right now, I am just trying to create some db tables in schema.yml and build them with doctrine. When running $ php symfony doctrine:build-schema I get the following error: When using the attribute ATTR_AUTO_ACCESSOR_OVERRIDE you cannot use the field name "data" because it is reserved by Doctrine. You must choose another field name.
Which would be clear enough except I'm NOT using "data" as a field name in my schema file: here's what I'm using:
sfTravelLodgingLocationsType:
columns:
lodging_name:
lodging_code:
{ type: string(255) }sfTravelLodgingLocations:
columns:
lodging_type_code:
name:
{ type: string(255), notnull: true }address:
{ type: string(255), notnull: true }city:
{ type: string(255), notnull: true }distance:
{ type: integer, notnull: true }phone:
{ type: string(255), notnull: true }known_2b_sold_out:
{ type: boolean, notnull: true, default: 0 } relations:
Travel_Lodging_LocationsType:
I'm assuming this is a misnamed error call ... I have found a few references to that same error in other threads but none that resolve it
Activity
| Field | Original Value | New Value |
|---|---|---|
| Description |
Hello, I'm familiarizing myself with symfony at this point, but doctrine seems like a very accessible ORM tool overall. This install will also use the apostrophe plugin though that is more a client request and it is seeming to complicate a lot of issues from what I can see. Right now, I am just trying to create some db tables in schema.yml and build them with doctrine. When running $ php symfony doctrine:build-schema I get the following error: When using the attribute ATTR_AUTO_ACCESSOR_OVERRIDE you cannot use the field name "data" because it is reserved by Doctrine. You must choose another field name. Which would be clear enough except I'm NOT using "data" as a field name in my schema file: here's what I'm using: sfTravelLodgingLocationsType: columns: lodging_name: { type: string(255) } lodging_code: { type: string(255) } sfTravelLodgingLocations: columns: lodging_type_code: { type: integer, notnull: true } name: { type: string(255), notnull: true } address: { type: string(255), notnull: true } city: { type: string(255), notnull: true } distance: { type: integer, notnull: true } phone: { type: string(255), notnull: true } known_2b_sold_out: { type: boolean, notnull: true, default: 0 } relations: Travel_Lodging_LocationsType: { local: type_id, foreign: id } I'm assuming this is a misnamed error call ... I have found a few references to that same error in other threads but none that resolve it |
Was able to resolve this - see comment below - but still think it counts as a bug since the source of the error is so unclear Hello, I'm familiarizing myself with symfony at this point, but doctrine seems like a very accessible ORM tool overall. This install will also use the apostrophe plugin though that is more a client request and it is seeming to complicate a lot of issues from what I can see. Right now, I am just trying to create some db tables in schema.yml and build them with doctrine. When running $ php symfony doctrine:build-schema I get the following error: When using the attribute ATTR_AUTO_ACCESSOR_OVERRIDE you cannot use the field name "data" because it is reserved by Doctrine. You must choose another field name. Which would be clear enough except I'm NOT using "data" as a field name in my schema file: here's what I'm using: sfTravelLodgingLocationsType: columns: lodging_name: { type: string(255) } lodging_code: { type: string(255) } sfTravelLodgingLocations: columns: lodging_type_code: { type: integer, notnull: true } name: { type: string(255), notnull: true } address: { type: string(255), notnull: true } city: { type: string(255), notnull: true } distance: { type: integer, notnull: true } phone: { type: string(255), notnull: true } known_2b_sold_out: { type: boolean, notnull: true, default: 0 } relations: Travel_Lodging_LocationsType: { local: type_id, foreign: id } I'm assuming this is a misnamed error call ... I have found a few references to that same error in other threads but none that resolve it |
- Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DC-1043, expand=changesets[-21:-1].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)
I was able to find a way to override the ATTR_AUTO_ACCESSOR_OVERRIDE with a method in the appConfiguration.class.php file
based on this thread ... http://stackoverflow.com/questions/7266293/attr-auto-accessor-override
But it is still a difficult error to troubleshoot ... not clear on what the reserved keyword "data" had to do with it ... considering I wasn't even using it in the schema
Would be interested in finding some resources that go into detail on the implications of the command line context that symfony relies on