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

Archivable not compatible with aggregate_column #1200

Open
sam-higton opened this issue May 27, 2016 · 0 comments
Open

Archivable not compatible with aggregate_column #1200

sam-higton opened this issue May 27, 2016 · 0 comments
Labels

Comments

@sam-higton
Copy link

If you have an object which is both archivable and has an aggregate column, an exception is thrown when you try to delete.

It looks like the Archive object is trying set the value of the aggregate column, but it is throwing an exception because this isn't possible.

For instance, if I have an aggregate column named "bookCount", it would throw the following exception when trying to delete:

Fatal error: Uncaught exception 'Propel\Runtime\Exception\BadMethodCallException' with message 'Call to undefined method: setBookcount.' in /home/sandbox/generated-classes/Base/AuthorArchive.php:1180

I've created an example in the Propel sandbox to illustrate this here.

@dereuromark dereuromark added the Bug label Jul 1, 2020
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

2 participants