Commit Graph

15 Commits

Author SHA1 Message Date
Rostislav Wolny
c9c7146ef1 Improve table prefixing to allow Doctrine entities for WP tables
WordPress tables use only the DB prefix, but MailPoet tables use
DB prefix + plugin prefix (mailpoet).

This commit changes TablePrefixMetadataFactory to be able to distiguish
WP table for posts and adds proper prefix.
[MAILPOET-5646]
2024-01-08 12:04:06 +05:00
Jan Lysý
525c80bac4 Fix PHPStan warnings in lib
[MAILPOET-5751]
2023-12-13 11:48:14 +01:00
Jan Jakes
076ee6d5de Add a helper method to detach all (or some) entities of a given class from entity manager
[MAILPOET-5745]
2023-12-04 12:13:51 +01:00
Brezo Cordero
e572721910 Notify of subscriber status change
This commit adds a check on the postUpdate event listener to notify of the status change.

[MAILPOET-4230]
2023-05-15 12:04:24 +02:00
Rostislav Wolny
9753331d52 Improve sql_mode replace code to support both ANSI and ANSI_QUOTES
[MAILPOET-4887]
2022-12-12 13:59:09 +01:00
Jan Jakes
926620e8f8 Ignore strict types rule in all existing files that don't have it
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00
Jan Jakes
c67c58709b Unify spacing of declare statements
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00
David Remer
2557171953 Fix assert() in lib
[MAILPOET-4258]
2022-11-25 14:32:34 +01:00
Jan Lysý
9ff72b4d4c Add SubscriberListener for notification about changes
[MAILPOET-4727]
2022-10-27 09:31:40 +02:00
Jan Jakes
c601aaa3eb Autofix issues detected by CodeSniffer
[MAILPOET-4617]
2022-09-06 17:38:01 +02:00
Jan Lysý
4ed3c44d6b Update symfony/validator package to v5
[MAILPOET-4227]
2022-04-27 08:57:54 +02:00
Rostislav Wolny
8afab5105f Add cache only MappingDriver implementation and use in prod. mode
We used to rely on Doctrine never calling MappingDriver when metadata are cached.
But we learned that there are some cases where Doctrine uses the driver.
In this commit we add custom MappingDriver that works on top of metadata cache.
[MAILPOET-4218]
2022-04-04 16:24:15 +02:00
Jan Lysý
7dbc316e01 Add settings ATTR_STRINGIFY_FETCHES for database connection
[MAILPOET-4097][MAILPOET-4106]
2022-02-14 12:23:58 +01:00
Jan Lysý
79a40a019c Change return type in CreatedAtTrait
[MAILPOET-4067]
2022-01-24 10:55:11 +01:00
Jan Jakes
9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00