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

createdAt, updatedAt for brand #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alekseyp
Copy link

Following our conversation here: #61

Since it's only for DB - It's lacking tests and no UI, but I did add couple getters.

Feel free to correct PR if there are any mistakes.

/**
* @return \DateTime
*/
public function getCreatedAt(): \DateTime;
Copy link
Owner

Choose a reason for hiding this comment

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

We can't change the interface without releasing a new major, so instead add these method as phpdoc method on the interface. Then we will add them to the actual interface in v3

/**
* @return \DateTime
*/
public function getCreatedAt(): \DateTime
Copy link
Owner

Choose a reason for hiding this comment

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

Use the Sylius\Component\Resource\Model\TimestampableTrait instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants