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

Models clean up #6934

Merged
merged 3 commits into from
Nov 29, 2016
Merged

Models clean up #6934

merged 3 commits into from
Nov 29, 2016

Conversation

GSadee
Copy link
Member

@GSadee GSadee commented Nov 29, 2016

Q A
Bug fix? no
New feature? no
BC breaks? yes
Related tickets
License MIT

@michalmarcinkowski michalmarcinkowski added the BC Break PRs introducing BC breaks (do not even try to merge). label Nov 29, 2016
/**
* @return string
*/
public function getInventoryName();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method should be removed 💥

use Sylius\Component\Order\Model\OrderItemUnitInterface as BaseOrderItemUnitInterface;
use Sylius\Component\Shipping\Model\ShipmentUnitInterface;

/**
* @author Mateusz Zalewski <mateusz.zalewski@lakion.com>
*/
interface OrderItemUnitInterface extends BaseOrderItemUnitInterface, InventoryUnitInterface, ShipmentUnitInterface
interface OrderItemUnitInterface extends BaseOrderItemUnitInterface, ShipmentUnitInterface
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why removing InventoryUnitInterface? The concept of Inventory unit should stay.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed that because of one method, which I wanted to add to InventoryUnitInterface. I revert this removal 👍

@pjedrzejewski pjedrzejewski merged commit 1235de0 into Sylius:master Nov 29, 2016
@pjedrzejewski
Copy link
Member

Thanks Grzesiu!

@GSadee GSadee deleted the interfaces-clean-up branch September 22, 2017 08:32
pamil pushed a commit to pamil/Sylius that referenced this pull request May 7, 2019
pamil pushed a commit to pamil/Sylius that referenced this pull request May 7, 2019
pamil pushed a commit to pamil/Sylius that referenced this pull request May 7, 2019
pamil pushed a commit to pamil/Sylius that referenced this pull request May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BC Break PRs introducing BC breaks (do not even try to merge).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants