#1570: Entities without columns cause php warnings when running Doctrine tasks
-----------------------------------+----------------------------------------
Reporter: Chekote | Owner: jwage
Type: defect | Status: new
Priority: minor | Milestone: Unknown
Component: Schema Files | Version: 1.0.3
Keywords: | Has_test: 0
Mystatus: Pending Core Response | Has_patch: 0
-----------------------------------+----------------------------------------
Having an entity without columns in your schema, such as:
schema.yml
{{{
MyEntity:
}}}
results in the following error during doctrine tasks execution:
{{{
Warning: array_keys(): The first argument should be an array in
/Users/dtyler/Sites/quartz/plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Import/Schema.php
on line 333
}}}
Obviously this is a *very* rare edge case, and is more of an annoyance
than anything. But it could certainly cause a newcomer confusion and cause
them to spend a lot of time trying to fix a problem in their schema that
doesn't exist.
Anyone who is running into this problem and want's a workaround, can
simply add an empty "columns:" definition the the entity as follows:
schema.yml
{{{
MyEntity:
columns:
}}}
--
Ticket URL: <http://trac.doctrine-project.org/ticket/1570>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"doctrine-svn" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---