yaml

外部キーをカスケード削除(onDelete: cascade)するように設定する

schema.ymlで引っかかる。 モデルのリビルドで、sql文がおかしいと言われる。 table: id: type: integer table2: table_id:としていると、symfonyがtable_idを自動的に外部キーとして認識してくれる。 カスケード削除の実現の為に table: id: type: integer …

テストデータ ( data/fixture/test_data.yml ) のロードがうまくいかない2

Fatal error: Uncaught exception 'sfException' with message 'Unable to find path for class "○○Peer".' in /usr/share/pear/symfony/addon/propel/sfPropelData.class.php:207 Stack trace: #0 /usr/share/pear/symfony/addon/propel/sfPropelData.class…

テストデータ ( data/fixture/test_data.yml ) のロードがうまくいかない1

ちょっとはまったので覚書。 エラー文 ‘The object “***″ from class “***” is not defined in your data file.’ テストデータに外部キーを読み込むときに頻発。 test_data.yml Table1: label1: name: なまえ body: ほんたい label2: name: なまえ2 body: …