[Doctrine_Parser_Exception] Fail-some error message!

If your precious evening hacking time has been wasted by this useless error message:

Then look no further, this was the oddest error message which caused errors inconsistently when generating models or updating the schema files. It turned out that the error was due to

  • vim swap files
  • osx ._ files

The parser would pick up all the files even if it started with a . (dot) which then borks of-course coz it wasn’t in the format it would expect it to be in

What would have been useful would be to have more meaningful error message like full path+file name and also the parser shouldnt pickup . (dot) files in the first place, dont see why a developer would want to keep his config files starting with a . (dot) unless its a .htaccess file.

One thought on “[Doctrine_Parser_Exception] Fail-some error message!”

Leave a Reply

Your email address will not be published. Required fields are marked *