Ben almaya devam: Doctrine_Core diyemez misin :: set (tek-çok başvuruları ayarlarken), ikinci argüman Doctrine_Collection bir örneği olmalıdır.
Benim fikstür 'Yükle' tablo 'varlık' için veri içerir bu olur.
Aşağıdaki schema.yml parçası bakınız:
detect_relations: true options: collate: utf8_general_ci charset: utf8 type: InnoDB Asset: actAs: { Timestampable: ~ } columns: asset_id: type: integer primary: true notnull: true autoincrement: true asset_type_id: type: integer notnull: true user_id: type: integer(4) notnull: true name: type: string(45) Upload: actAs: { Timestampable: ~ } columns: upload_id: type: integer primary: true notnull: true autoincrement: true asset_id: type: integer notnull: true relations: Asset: class: Asset local: asset_id foreign: asset_id foreignAlias: Assets type: many foreignType: one
İşte Fikstürü parçası:
Asset: sp_asset1: AssetType: Spain sfGuardUser: User_1 name: The great Spanish song Category: Category_3 description: The best Spanish Thing preview: http://www.google.com/sample.mp3 sp_asset2: AssetType: British sfGuardUser: User_1 name: The best mountains scok Category: Category_3 description: A great example of British ## the problem happens below ## Upload: Upload_1: asset: sp_asset1 Upload_2: asset: sp_asset2
This happens when I include data for 'asset' in the 'Upload' table in my fixture Does anyone have an idea about this 'Couldn't call Doctrine_Core::set(), second argument...' problem?