Commit Graph

36 Commits

Author SHA1 Message Date
1960f6944f [CORE][DB] Fix error in regex that prevented selecting collumns that are named the same way a column is 2021-11-02 11:14:59 +00:00
2694d83ae4 [TOOLS][CS-FIXER] Run new PHP CS Fixer config. Notably, adds strict_types 2021-10-27 04:19:30 +01:00
eli
99fd2f725b [Core][Util] Hotfix: In App\Core\DB\DB persistWithSameId, casting the id to an int. In App\Util\HTML html, tag is now evaluated beforehand, making sure it's a string. 2021-10-27 04:19:30 +01:00
8fdc52636f [ActivityPub] Port RSA 2021-10-27 04:19:29 +01:00
9109c61af5 [TOOLS][CS-FIXER] Run new PHP CS Fixer config. Notably, adds strict_types 2021-10-27 04:19:28 +01:00
ce80065775 [DB] Add mechanism for specifying limit and offset in dql query 2021-09-21 11:04:26 +01:00
c69b28d894 [CORE] Fix Undefined array key 0 in DB::filterTableName 2021-09-14 13:13:45 +01:00
4e30e5aad9 [TOOLS] Fix all issues found by PHPStan level 2 2021-09-14 13:13:44 +01:00
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