Closed twojtylak closed 6 years ago
I just had a look where the CodeAwareInterface is used and it seems on first glance almost every Resource-Interface extends the CodeAwareInterface. So maybe there is a good chance that it is not the best idea to remove it entierely.
If we would take the name and the code from the product (maybe with a fixed pre- or suffix to have it unique throughout the system), we could also get rid of the first parameter for the createProductBundle-Method.
@twojtylak is this also fixed by #27 ?
yes
In the product entity the field
code
is mandatory, so calling:fails.
[PDOException (23000)] SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: solutiondrive_product_bundle.code
So either we
https://github.com/solutionDrive/SyliusProductBundlesPlugin/blob/84d57030be3646700c18a98d4c3d1df413625c48/src/Service/ProductBundleCreator.php#L37-L44