]> git.immae.eu Git - github/wallabag/wallabag.git/commit - src/Wallabag/ApiBundle/Controller/EntryRestController.php
Set a starred_at field when an entry is starred. 3330/head
authorFrançois D <franek@users.noreply.github.com>
Wed, 23 Aug 2017 21:06:40 +0000 (23:06 +0200)
committerFrançois D <franek@users.noreply.github.com>
Fri, 25 Aug 2017 19:19:47 +0000 (21:19 +0200)
commita991c46eedec0efb24d0a9974b1c7fcabf8cfa66
treefa33236c5ef67e023833c889eb52d5bed99d35bd
parent2490f61dca635026a3eb9b5e9b6978b1981b1172
Set a starred_at field when an entry is starred.
This date is used to sort starred entries.

Can not use Entry::timestamps method otherwise starred_at will be updated each time entry is updated.
Add an updateStar method into Entry class
A migration script has been added in order to set starred_at field.
app/DoctrineMigrations/Version20170824113337.php [new file with mode: 0644]
src/Wallabag/ApiBundle/Controller/EntryRestController.php
src/Wallabag/CoreBundle/Controller/EntryController.php
src/Wallabag/CoreBundle/Entity/Entry.php
src/Wallabag/CoreBundle/Repository/EntryRepository.php
tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php