2009-06-01から1ヶ月間の記事一覧

外部キーをカスケード削除(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…