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

OHRM5X-1796: Create buzz - entities #1518

Merged
merged 12 commits into from
Nov 3, 2022

Conversation

RajithaKumara
Copy link
Member

No description provided.

/**
* @var int
*
* @ORM\Column(name="number_of_likes", type="integer", nullable=true)
Copy link
Contributor

Choose a reason for hiding this comment

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

Just asking. If there is a default value for this field as 0, is there any point of making it nullable?

Copy link
Member Author

Choose a reason for hiding this comment

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

nice catch. about to define it in next PR. for the moment thought to keep it

/**
* @var DateTime
*
* @ORM\Column(name="comment_time", type="datetime")
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems text is required. If so, do we need to make this field nullable?

Copy link
Member Author

Choose a reason for hiding this comment

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

no need to keep it nullable. I have revert it to make backward compatible with 4.x

* @group Buzz
* @group Entity
*/
class BuzzPostTest extends EntityTestCase
Copy link
Contributor

Choose a reason for hiding this comment

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

Will add test for other entities after merge

@RajithaKumara RajithaKumara merged commit 6e89f3b into orangehrm:5.3 Nov 3, 2022
Super-Chama pushed a commit to Super-Chama/orangehrm that referenced this pull request Dec 13, 2022
Co-authored-by: Manul <manul@orangehrm.us.com>
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.

None yet

3 participants