Skip to content

Commit 317e1d9

Browse files
committed
Allow targeting Transactional on classes
1 parent afe63aa commit 317e1d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Decorator/Doctrine/ORM/Transactional.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/**
1919
* Wraps persistence method operations within a single Doctrine transaction.
2020
*/
21-
#[\Attribute(\Attribute::TARGET_METHOD)]
21+
#[\Attribute(\Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD)]
2222
final class Transactional extends DecoratorAttribute
2323
{
2424
/**

0 commit comments

Comments
 (0)