[Error] Unable to parse string: Unable to parse line ~. [Symfony1.4]
In Symfony1.4, I got an error when loading a fixture file into the database.
# php symfony doctrine:data-load
■ fixture.yml
Book:
Book1
isbn: 9784478012031
asin: 4478012032
title: もし高校野球の女子マネージャーがドラッカーの『マネジメント』を読んだら
memo: |
敏腕マネージャーと野球部の仲間たちが甲子園を目指して奮闘する青春小説。
■ Error Occurrence #1
Unable to parse string: Unable to parse line 34 (Book1).
Book1 was missing a colon (:) after it. Adding the colon resolved the issue.
■ Error Occurrence #2
Unable to parse string: A YAML file cannot contain tabs as indentation at line 46 (敏腕マネージャーと野球部の仲間たちが甲子園を目指して奮闘する青春小説。).
Tabs were the problem. Apparently YAML doesn’t allow tab indentation at the beginning of lines.
That’s all from the Gemba.