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 findPkSimple() uses wrong key for InstancePool (QueryBuilder) #206 #270

Merged
merged 2 commits into from Jan 28, 2012
Merged

Fix findPkSimple() uses wrong key for InstancePool (QueryBuilder) #206 #270

merged 2 commits into from Jan 28, 2012

Conversation

cedriclombardot
Copy link
Contributor

Fix issue #206 by applying patch proposed by @chetzel

Tests ok
Tests: 2282, Assertions: 5495, Skipped: 13.

Ping @fzaninotto

foreach ($table->getPrimaryKey() as $index => $column) {
$pks []= "\$row[$index]";
}
$pks = array();
Copy link
Contributor

Choose a reason for hiding this comment

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

wrong ndentation

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed by e3f5081

@willdurand
Copy link
Contributor

@cedriclombardot Did you get this error? It seems @fzaninotto said, there was not bug..

@cedriclombardot
Copy link
Contributor Author

I've show this bug to @fzaninotto today with a multiple level conrete
inheritance, the getInstanceFromPool use $row[17] and addInstanceToPool
$row[0] so it fail.

Cdric

2012/1/28 William DURAND <
reply@reply.github.com

@cedriclombardot Did you get this error? It seems @fzaninotto said, there
was not bug..


Reply to this email directly or view it on GitHub:
#270 (comment)

willdurand added a commit that referenced this pull request Jan 28, 2012
Fix findPkSimple() uses wrong key for InstancePool (QueryBuilder) #206
@willdurand willdurand merged commit ae7bdfc into propelorm:master Jan 28, 2012
@willdurand
Copy link
Contributor

Thanks! Dont forget to port this fix on Propel2.

cedriclombardot added a commit to cedriclombardot/Propel2 that referenced this pull request Jan 31, 2012
willdurand added a commit to propelorm/Propel2 that referenced this pull request Jan 31, 2012
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