Add CommentStoreComment::newUnsavedComment()
authorBrad Jorsch <bjorsch@wikimedia.org>
Mon, 11 Sep 2017 18:27:01 +0000 (14:27 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Mon, 11 Sep 2017 18:29:22 +0000 (14:29 -0400)
commit01271ff6d898f3ad269950973e3ccc94ce2fef4b
tree43810029df808c97044c64aa87b2688aad1028af
parent2eef6506d3a9108ed4eecb6e4298c013f6753b79
Add CommentStoreComment::newUnsavedComment()

Revision (or more accurately, its upcoming MCR replacement) should allow
for the full flexibility of CommentStore in its interface, and the most
straightforward way to do that is to use CommentStoreComment. But for
that to work sanely, we need a non-@private way to create a new
CommentStoreComment that hasn't been saved to the database yet.

Change-Id: I76028e8ef3da4568a16e098cdfbc806a67b814e3
includes/CommentStore.php
includes/CommentStoreComment.php