foundry icon indicating copy to clipboard operation
foundry copied to clipboard

Chaining Confusion

Open amyAMeQ opened this issue 8 months ago • 2 comments

I'm not sure if this is a bug, but it feels like one. I am using version 1.38.5

If I have a basic factory that extends PersistentProxyObjectFactory, and then I do the following, I get some unexpected results.

`

  $reflectionBox = ContentComponentItemFactory::createOne();

  $reflectionBox->setQuestionnaire($questionnaire->_real());

  $reflectionBox->setQuestionnaireQuestion($question->_real());

  $reflectionBox->_save();

  dump($reflectionBox->getQuestionnaire()); // returns null instead of the expected questionnaire

 dump($reflectionBox->getQuestionnaireQuestion(); // returns the question as expected

`

amyAMeQ avatar Apr 01 '25 18:04 amyAMeQ

Hello,

it seems like a bug...

could you please provide a reproducer?

thanks!

nikophil avatar Apr 01 '25 18:04 nikophil

Yes. I'll put one together

amyAMeQ avatar Apr 17 '25 22:04 amyAMeQ

I'm closing this issue which is stale for more than 3 months. Feel free to reopen it if needed

nikophil avatar Jul 06 '25 17:07 nikophil