propelorm/Propel — pull request #521 by woodspire (2012-11-30 15:29:49+00:00)
Title: fix problem when deleting a reference when FK is part of foreign PK

Here is a example to better explain the problem and the solution.

2 tables: request & requestStockCode

request:
id -> PK
name

requestStockCode
request_id -> PK
stockCode -> PK
comment

when deleting a stockcode from the request object, the request_id colulmn in the requestStockCode object was set to null, even in the "deletion" list. When the doSave() function was called, no entry in the requestStockCode table was deleted because the request_id was null on each of these object.

The "clone" keyword was missing so that the "deletion" list of objects would be unaffected by setting the FK to null.