-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Solution for dealing with a LazyCommand - Bug #16160 #16162
Conversation
* Added worfklow for cloning PRs * Typofix pimcore name * Changed PR clone to branch clone workflow
Review Checklist
|
It's a little bit confusing in the description of creating a merge request the base branch for bug fixes is "10.5", which is an older version, and in your checklist above is "11.0". |
The checklist is outdated, it should be 11.1, while 10.5 and 10.6 are not supported anymore, they are EOL. |
Ok. So your announcements are more relevant than the mentioning in the system messages. :-) |
… on calculated values (pimcore#16144) * Add the possibility to filter on date and number types on calculated values * fix filters when expressions are used instead of class * Use addDay function indtead of adding seconds Co-authored-by: Niklas <niklas.brunberg@cag.se> * refactor fix filters when expressions are used instead of class --------- Co-authored-by: Niklas <niklas.brunberg@cag.se>
Symfony appears to be doing this in the Application if ($command instanceof LazyCommand) {
$command = $command->getCommand();
} Wouldn't is be a cleaner solution to use something like this as well? For example: public function add(Command $command): ?Command
{
if ($command instanceof LazyCommand) {
$command = $command->getCommand();
}
if ($command instanceof DoctrineCommand) {
$definition = $command->getDefinition(); I just ran into this error aswell (both on Pimcore 11.0 and 11.1) and adding the instanceof LazyCommand check appears to have solved it for me. |
@DuckThom : That is also a nice solution. The difference is that every LazyCommand which passes will be loaded. I don't know if this have a big impact or not. I guess not, because the Command might be load during the request anyway. |
* Consume all trasports * Split consume commands in the example Co-authored-by: Bernhard Rusch <brusch@users.noreply.github.com> * Document setting up maintenance workers * Count like a boss * 🖊️ Co-authored-by: Jacob Dreesen <jacob@hdreesen.de> * Polish transport explanations Co-authored-by: Divesh Pahuja <divesh.pahuja@pimcore.com> * 🖊️ proofread Co-authored-by: Manon Cassier <127942915+mcassier31@users.noreply.github.com> --------- Co-authored-by: Bernhard Rusch <brusch@users.noreply.github.com> Co-authored-by: Jacob Dreesen <jacob@hdreesen.de> Co-authored-by: Divesh Pahuja <divesh.pahuja@pimcore.com> Co-authored-by: Manon Cassier <127942915+mcassier31@users.noreply.github.com>
* Deprecate Data::getAsIntegerCast/getAsFloatCast() * Fix README * Change to Pimcore 11.2.0
…mcore#15849) * Editable Date: New config outputIsoFormat * Doc format optimized * Fix wrong doc * Add upgrade notes * Change to Pimcore 11.2.0
Kudos, SonarCloud Quality Gate passed! |
Done. |
@MarkTro you merged |
BTW I've already opened a PR #16257 in replace of this branch |
Closed in favor of #16257. thank you! |
Resolves the problem that the comand can be a LazyCommand instead of the real DoctrineCommand.