Commit Graph

28 Commits

Author SHA1 Message Date
add8f4a52f [TOOLS] Fix all errors found by PHPStan level 1 2021-09-14 13:13:42 +01:00
fe86735b8b [DB][DOCUMENTATION] Explain limit: 2 in findOneBy 2021-09-14 13:13:28 +01:00
2dd3511149 [CORE][DB] Specify desired case in array_change_case, for clarity 2021-09-14 13:13:19 +01:00
af5526d720 [DB] Refactor findOneBy method 2021-09-14 13:13:15 +01:00
8317c612ff [DB] Handle using methods with class name as well as table name and add lookup methods 2021-09-14 13:13:13 +01:00
6d93b6fb32 [TESTS] Raise App\Core\DB\DB test coverage to 100% and fix issues found 2021-09-14 13:13:01 +01:00
d31c3b1784 [AUTOGENERATED] Update autogenerated code 2021-09-14 13:13:01 +01:00
1b8f5b7bf0 [DB] Make DB::findOneBy throw a different exception if two values are found 2021-09-14 13:12:23 +01:00
7a90e844b7 [SECURITY][DB] Make user register 'atomic', by using a single transaction for inserting all objects, to avoid partial inserts 2021-09-14 13:12:23 +01:00
19850b5e0d [DB] Fix bug in custom criteria format wrangling 2021-09-14 13:11:51 +01:00
7284c833a6 [DB] Allow DQL queries with table name rather than entity 2021-09-14 13:11:50 +01:00
9659762726 [DB] Add table map which allows using table names rather than entities in Doctrine operations 2021-09-14 13:11:50 +01:00
1687ecaa24 [FAVOURITE] Temporary commit to fix exception in timeline 2021-09-14 13:11:48 +01:00
faa362e2e2 [DB] Remove unique constraint from GSActor.nickname and fix register and related functionality 2021-09-14 13:10:23 +01:00
460712e15e [GIT] Change my email to the new one in all files and bump copyright year 2021-09-14 13:06:56 +01:00
Hugo Sales
e8feb2ae84 [DOCUMENTATION][REFACTOR] Add documentation to all flagged function and do some small cleanup 2021-09-14 13:06:55 +01:00
Hugo Sales
e949dd654a [CONFIG] Various fixes to use new configuration format 2021-09-14 13:06:54 +01:00
Hugo Sales
63d2d58e9e [EXCEPTION] Make findOne return NotFoundException 2021-09-14 13:06:52 +01:00
Hugo Sales
80cefca90d [DB] Add wrapper for making native queries 2021-09-14 13:06:48 +01:00
Hugo Sales
ea4f2c522b [DB] Add support for calling methods with FQCN 2021-09-14 13:06:47 +01:00
Hugo Sales
0b50905ac8 [NOTE][UI] Add note replying and UI displaying 2021-09-14 13:06:45 +01:00
Hugo Sales
8cfa883c1b [DB] Add 'dql' method to wrap 'createQuery' and replace 'Gsactor' with 'GSActor' 2021-09-14 13:05:55 +01:00
Hugo Sales
8716d700a6 [CORE][DB] Fix uses of db tables after previous restructure 2021-09-14 13:05:53 +01:00
Hugo Sales
6adb527fe0 [DATABASE] Refactor DB.php and make findBy always return an array, instead of a doctrine collection 2021-09-14 13:05:43 +01:00
Hugo Sales
7c35fde8bc [FIX] Fix bug in DATABASE.php, since findBy can return different types 2021-09-14 13:05:41 +01:00
Hugo Sales
3992629a08 [DATABASE][WRAPPER] Add findBy method which allows finding entities with a complex expression 2021-09-14 13:05:38 +01:00
Hugo Sales
643a937152 [DATABASE][WRAPPER] Update DATABASE wrapper so entity names are provided without the namespace 2021-09-14 13:05:36 +01:00
Hugo Sales
4ffb7c338f [CORE] Refactoring core 2021-09-14 13:05:26 +01:00