mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-60: doctrine schema-tool generates invalid php code for aliased columns from YAML #72
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Oct 26, 2009).
Originally assigned to: @jwage on GitHub.
Jira issue originally created by user chriswest:
Using:
php doctrine convert-mapping --from=path-to-scheme --to=annotation --dest=dest-path
Snippet from YAML scheme:
Creating an annotation class from this scheme produces the following invalid output for the aliased columns "xcoord" and "ycoord":
@doctrinebot commented on GitHub (Oct 26, 2009):
Comment created by romanb:
Correct output should be:
@Column(name="xcoord", type="integer")
private $x;
@Column(name="ycoord", type="integer")
private $y;
@doctrinebot commented on GitHub (Oct 26, 2009):
Comment created by @jwage:
Your YAML is incorrect. Looks like you're using the syntax from Doctrine 1. It should be:
@doctrinebot commented on GitHub (Oct 26, 2009):
Comment created by @jwage:
Whoops and tableName is not correct.
@doctrinebot commented on GitHub (Oct 26, 2009):
Issue was closed with resolution "Invalid"
@doctrinebot commented on GitHub (Oct 26, 2009):
Comment created by chriswest:
ok, thanks for that hint - we currently try to migrate our 1.x scheme to 2.0 and I didn't have a look at the changes in YAML. are there any plans for an "easy" migration process? I think it would help a lot when doctrine 2.0 gets finally released.
@doctrinebot commented on GitHub (Oct 26, 2009):
Comment created by @jwage:
You can convert a 1.0 yaml schema with the convert-mapping task.
@doctrinebot commented on GitHub (Oct 26, 2009):
Comment created by @jwage: