When loading fixtures through propel-load-data a very general error message can appear saying 'You must give a name for each fixture data entry'. It is usually not clear where the problem lies. I propose to add some extra information to the error like the table name.
Index: lib/addon/propel/sfPropelData.class.php
===================================================================
--- lib/addon/propel/sfPropelData.class.php (revision 5025)
+++ lib/addon/propel/sfPropelData.class.php (working copy)
@@ -100,7 +100,7 @@
if (!is_array($data))
{
- throw new Exception('You must give a name for each fixture data entry');
+ throw new Exception('You must give a name for each fixture data entry (class '.$class')');
}
foreach ($data as $name => $value)