Marcin Kurczewski
7b0d907acc
Fixed login remembering
2014-10-18 18:48:27 +02:00
Marcin Kurczewski
1d72cec84b
Added user lazy loading
2014-10-18 18:48:27 +02:00
Marcin Kurczewski
39d854cb8e
Added usage count tracking to tags and posts
2014-10-18 18:48:27 +02:00
Marcin Kurczewski
af3908a23c
Added id column to tags
2014-10-18 18:48:27 +02:00
Marcin Kurczewski
a3f9382671
Changed file mgmt to use entities' lazy getters
2014-10-18 18:48:26 +02:00
Marcin Kurczewski
13a15a3a6b
Added post mime type saving
2014-10-18 18:48:25 +02:00
Marcin Kurczewski
34752529b5
Fixed saving tags under certain circumstances
2014-10-18 18:48:25 +02:00
Marcin Kurczewski
3b505a9c60
Fixed transaction manager tests using real DB
2014-10-18 18:48:24 +02:00
Marcin Kurczewski
5cfb225400
Fixed lazy loaders injection
...
AbstractSearchService::getByFilter() wasn't injecting lazy loaders,
because it didn't call AbstractDao::afterLoad(). This resulted in tags
not showing up in post list, because there was nothing to retrieve them.
Changed lazy loaders injection so that it's always executed as soon as
possible (i.e. right in EntityConverter).
2014-10-18 18:48:24 +02:00
Marcin Kurczewski
a16a2d3235
Added posts listing ( closed #7 )
2014-10-18 18:48:24 +02:00
Marcin Kurczewski
b4d2c5ecbb
Fixed retrieving total record count
2014-10-18 18:48:24 +02:00
Marcin Kurczewski
bc8e1b05a6
Implemented post uploads ( closed #11 )
2014-10-18 18:48:22 +02:00
Marcin Kurczewski
6e196637eb
Moved type conversion to EntityConverters
2014-10-18 18:48:22 +02:00
Marcin Kurczewski
f6df009085
Split EntityConverter to separate strategies
...
Reflection turned out to be bad, since I cannot implement my own method
in entities, like Post::setUser() instead of Post::setUserId().
2014-10-18 18:48:22 +02:00
Marcin Kurczewski
6035cf89b7
Added transaction manager
2014-10-18 18:48:22 +02:00
Marcin Kurczewski
cf0312ce43
Changed EntityConverter inner workings
...
In order to understand data types returned by DB engine better,
EntityConverter was changed to use getter/settter methods instead of raw
properties. That way, the methods inside entities can cast to desired
data types when accessed.
2014-10-18 18:48:21 +02:00
Marcin Kurczewski
4526345e5b
Switched to sqlite ( closed #38 )
2014-10-18 18:48:21 +02:00
Marcin Kurczewski
d450f5794e
Fixed magic strings in Dao layer
2014-10-18 18:48:21 +02:00
Marcin Kurczewski
2d9865f1d3
Fixed unused variable in abstract search service
2014-10-18 18:48:21 +02:00
Marcin Kurczewski
0548890d97
Introduced entity property getters/setters
2014-10-18 18:48:21 +02:00
Marcin Kurczewski
cb08f68469
Fixed losing entity IDs upon updates
2014-10-18 18:48:20 +02:00
Marcin Kurczewski
c117367974
Added IValidatable; moved validation to FormData
...
I still struggle to find out how to deal with arguments like
$userNameOrEmail. Should I trim() them in controllers, or in service?
If I do it in service, shouldn't all of such validation belong in there?
2014-10-18 18:48:19 +02:00
Marcin Kurczewski
45e18a9ba3
Improved PHP style
2014-10-18 18:48:19 +02:00
Marcin Kurczewski
85a026c37b
Added e-mail confirmation and password reset
2014-10-18 18:48:19 +02:00
Marcin Kurczewski
4c0a408152
Added account removal
2014-10-18 18:48:18 +02:00
Marcin Kurczewski
7a8badd2ed
Fixed logging in users that no longer exist
2014-10-18 18:48:18 +02:00
Marcin Kurczewski
ee9fde5402
Added proof of concept for pagination and search
2014-10-18 18:48:17 +02:00
Marcin Kurczewski
ae93b187ac
Fixed bugs in registration
2014-10-18 18:48:17 +02:00
Marcin Kurczewski
1104eaf591
Fixed deprecated MongoDB option
2014-10-18 18:48:16 +02:00
Marcin Kurczewski
db949dd361
Added proof of concept for authorization system
2014-10-18 18:48:15 +02:00
Marcin Kurczewski
f3096ffc5d
Changed object initialization
...
DI FTW
2014-10-18 18:48:15 +02:00
Marcin Kurczewski
011d803bd0
Added Config; concealed MongoDB dependency
2014-10-18 18:48:15 +02:00
Marcin Kurczewski
b7de8ae0bf
Added proof of concept for Dao system
...
Fixup first commit
2014-10-18 18:48:15 +02:00