schmittjoh/JMSPaymentCoreBundle — pull request #31 by calumbrodie (2012-04-26 12:36:03+00:00)
Title: Exception being thrown when trying to save extendedData to unpersisted financialTransaction

I am finding that when trying to set extendedData on a financialTransaction that has not yet been persisted (so we are setting extended data at the time we are creating the financial transaction) then an exception is thrown (due to the call to $this->extendedData->equals($this->extendedDataOriginal) which does not accept a null param).

The extendedDataOriginal property is not set (because the entity has not been loaded, the onPostLoad() event is not being called).