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 set descendant class #569

Merged
merged 4 commits into from
Jan 24, 2013

Conversation

nibsirahsieu
Copy link
Contributor

No description provided.

@jaugustin
Copy link
Member

@nibsirahsieu adding a test to prove the issue would be a good thing ;)

@nibsirahsieu
Copy link
Contributor Author

@jaugustin, i've added unit test. its also cover the issue fixed in #490

$concreteArticle->setTitle('Foo');
$concreteArticle->setBody('Bar');
$parent = $concreteArticle->getParentOrCreate();
$this->assertEquals($parent->getDescendantClass(), 'Foo\Bar\NamespacedConcreteArticle', 'getDescendantClass() will return Foo\Bar\NamespacedConcreteArticle');
Copy link
Member

Choose a reason for hiding this comment

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

I think the $expectedand$actual` parameters should be inverted
@willdurand what do you think ?

@jaugustin
Copy link
Member

@nibsirahsieu thanks, with that test Propel will be and stay more stable ;)

willdurand added a commit that referenced this pull request Jan 24, 2013
@willdurand willdurand merged commit 68dcfce into propelorm:master Jan 24, 2013
@willdurand
Copy link
Contributor

thanks!

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.

3 participants