Closed CsarRamos closed 1 year ago
Ok I've read this PR more carefully and I think I understand what you're trying to do. I recommend:
grouping
column to store the table name, use value
- that's how it's done elsewhere.buildOptions
function at all. Just add <pseudoconstant>
tag pointing to your option group like this: https://github.com/civicrm/civicrm-core/blob/a6d0f90f8da1d21cd87e62f56d9bf4dc8f05d1ef/xml/schema/Core/EntityTag.xml#L26-L33civix generate:entity-boilerplate
..mgd.php
file instead of .json
as that's a newer approach and we ought to be removing the .json
stuff from this extension.Thanks for helping out, @colemanw.
@CsarRamos let us know if you get stuck.
Thanks for helping out, @colemanw.
@CsarRamos let us know if you get stuck.
Great, thank you for the guidelines, I'll let you if there's any problem, thanks.
Hello @bjendres I have added some comits that implement the functionality following @colemanw recommendations. I have tried to modify the resource class, but it seems that some decisions have to be made on how to implement it and I am quite unsure how to do it.
Hello @bjendres I have added some comits that implement the functionality following @colemanw recommendations. I have tried to modify the resource class, but it seems that some decisions have to be made on how to implement it and I am quite unsure how to do it.
Apologies, I updated civix and did not detect that there were errors, I will check it carefully and update it as soon as possible, thanks.
Hello @bjendres I have added some comits that implement the functionality following @colemanw recommendations. I have tried to modify the resource class, but it seems that some decisions have to be made on how to implement it and I am quite unsure how to do it.
Apologies, I updated civix and did not detect that there were errors, I will check it carefully and update it as soon as possible, thanks.
Hello, the problem was solved including the mixin in info and removing old function. Could you review if the aproach is correct or if there is a issue? Thank you.
@jensschuppe, can we review this together some time soon?
I've made 2 suggestions but otherwise this code looks very good.
Hello, I added new change to allow to add the label field in the form build with afform. If it should be a new requirement, please let me know and I will create another issue/PR. Thanks!
@jensschuppe Could you have a look at this?
Implemented logic in the resource demands class to add the referenced entities.
Tested with the event class.
Before:
In Searchkit it's not possible to join the event class to the resource demand class.
After:
Searchkit allows join event class to the resource demands class.
https://github.com/systopia/de.systopia.resource/issues/27