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

ConcreteInheritance behavior #38

Open
cristianoc72 opened this issue Jan 26, 2017 · 0 comments
Open

ConcreteInheritance behavior #38

cristianoc72 opened this issue Jan 26, 2017 · 0 comments
Labels

Comments

@cristianoc72
Copy link
Member

At line https://github.com/propelorm/Propel3/blob/master/src/Propel/Generator/Behavior/ConcreteInheritance/Component/PreSave.php#L77 if I try to persist dependencies, this test https://github.com/propelorm/Propel3/blob/master/tests/Propel/Tests/Generator/Behavior/ConcreteInheritance/ConcreteInheritanceBehaviorTest.php#L109 causes an infinite loop.

If I don't persist dependencies, this test https://github.com/propelorm/Propel3/blob/master/tests/Propel/Tests/Generator/Behavior/ConcreteInheritance/ConcreteInheritanceBehaviorTest.php#L169 causes the following error:

There was 1 error:

1) Propel\Tests\Generator\Behavior\ConcreteInheritanceBehaviorTest::testPreSaveCopyData
Exception: Dependency not found. From Propel\Tests\Bookstore\Behavior\ConcreteContent to Propel\Tests\Bookstore\Behavior\ConcreteCategory. Did you forget to persist() it?

/home/cristiano/Github/Propel3/src/Propel/Runtime/Session/DependencyGraph.php:65
/home/cristiano/Github/Propel3/src/Propel/Runtime/Session/SessionRound.php:255
/home/cristiano/Github/Propel3/src/Propel/Runtime/Session/SessionRound.php:187
/home/cristiano/Github/Propel3/src/Propel/Runtime/Session/Session.php:325
/home/cristiano/Github/Propel3/vendor/symfony/event-dispatcher/EventDispatcher.php:184
/home/cristiano/Github/Propel3/vendor/symfony/event-dispatcher/EventDispatcher.php:46
/home/cristiano/Github/Propel3/src/Propel/Runtime/Persister/SqlPersister.php:205
/home/cristiano/Github/Propel3/src/Propel/Runtime/Persister/SqlPersister.php:153
/home/cristiano/Github/Propel3/src/Propel/Runtime/Session/SessionRound.php:303
/home/cristiano/Github/Propel3/src/Propel/Runtime/Session/SessionRound.php:187
/home/cristiano/Github/Propel3/src/Propel/Runtime/Session/Session.php:325
/home/cristiano/Github/Propel3/tests/Fixtures/bookstore/build/classes/Propel/Tests/Bookstore/Behavior/Base/BaseConcreteArticleRepository.php:143
/home/cristiano/Github/Propel3/src/Propel/Runtime/ActiveRecordTrait.php:36
/home/cristiano/Github/Propel3/tests/Propel/Tests/Generator/Behavior/ConcreteInheritance/ConcreteInheritanceBehaviorTest.php:167

Caused by
MJS\TopSort\ElementNotFoundException: Dependency `000000001b4c45530000000063e83a82` not found, required by `000000001b4c42c60000000063e83a82`

/home/cristiano/Github/Propel3/vendor/marcj/topsort/src/ElementNotFoundException.php:40
/home/cristiano/Github/Propel3/vendor/marcj/topsort/src/Implementations/GroupedArraySort.php:110
/home/cristiano/Github/Propel3/vendor/marcj/topsort/src/Implementations/GroupedStringSort.php:109
/home/cristiano/Github/Propel3/vendor/marcj/topsort/src/Implementations/GroupedStringSort.php:69
/home/cristiano/Github/Propel3/src/Propel/Runtime/Session/DependencyGraph.php:61
/home/cristiano/Github/Propel3/src/Propel/Runtime/Session/SessionRound.php:255
/home/cristiano/Github/Propel3/src/Propel/Runtime/Session/SessionRound.php:187
/home/cristiano/Github/Propel3/src/Propel/Runtime/Session/Session.php:325
/home/cristiano/Github/Propel3/vendor/symfony/event-dispatcher/EventDispatcher.php:184
/home/cristiano/Github/Propel3/vendor/symfony/event-dispatcher/EventDispatcher.php:46
/home/cristiano/Github/Propel3/src/Propel/Runtime/Persister/SqlPersister.php:205
/home/cristiano/Github/Propel3/src/Propel/Runtime/Persister/SqlPersister.php:153
/home/cristiano/Github/Propel3/src/Propel/Runtime/Session/SessionRound.php:303
/home/cristiano/Github/Propel3/src/Propel/Runtime/Session/SessionRound.php:187
/home/cristiano/Github/Propel3/src/Propel/Runtime/Session/Session.php:325
/home/cristiano/Github/Propel3/tests/Fixtures/bookstore/build/classes/Propel/Tests/Bookstore/Behavior/Base/BaseConcreteArticleRepository.php:143
/home/cristiano/Github/Propel3/src/Propel/Runtime/ActiveRecordTrait.php:36
/home/cristiano/Github/Propel3/tests/Propel/Tests/Generator/Behavior/ConcreteInheritance/ConcreteInheritanceBehaviorTest.php:167
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant