Commit Graph

23 Commits

Author SHA1 Message Date
alex-mpoet
15b0846f34 Leave on-save email validation only in SubscriberSaveController
[MAILPOET-5878]
2024-03-15 15:29:36 +01:00
Pavel Dohnal
e9d8610cda Remove unused method
[MAILPOET-5851]
2024-02-15 10:43:46 +01:00
Pavel Dohnal
31cb9e10c8 Use type property instead of comment
[MAILPOET-5851]
2024-02-15 10:43:46 +01:00
Pavel Dohnal
7a0cad8abf Update post status when email is sent
[MAILPOET-5851]
2024-02-15 10:43:46 +01:00
Jan Jakes
bc7fbd2469 Extract shared detachAll/refreshAll logic to a method
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
Jan Jakes
082ab78f90 Remove no longer needed cleanup
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
Jan Jakes
682527cd1b Add a helper method to refresh all (or some) entities of a given class
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
David Remer
9624ce4e0a Allow to detach different entities
[MAILPOET-5829]
2024-01-20 14:02:52 +05:00
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