Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix load fixtures for one-to-many relation with FQCN #148

Merged

Conversation

jaugustin
Copy link
Member

Hi,

This fix an issue with load fixtures.

When classname are FQCN in the fixture like in doc example. it fail to find related object.

with this fix it work with both FQCN or QCN

@@ -125,6 +125,9 @@ protected function loadDataFromArray($data = null)

foreach ($data as $class => $datas) {
$class = trim($class);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you fix the extra spaces before the equal sign?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

willdurand added a commit that referenced this pull request May 5, 2012
…many-fqcn

fix load fixtures for one-to-many relation with FQCN
@willdurand willdurand merged commit 35dbf79 into propelorm:1.1 May 5, 2012
@willdurand
Copy link

Thanks

@jaugustin jaugustin deleted the fix-load-fixtures-with-one-to-many-fqcn branch October 21, 2017 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants