Skip to content

Commit 15c6786

Browse files
authored
Fix the example with Expression Language
1 parent 653222c commit 15c6786

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Turbo/doc/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,8 +729,8 @@ Example::
729729

730730
use Symfony\UX\Turbo\Attribute\Broadcast;
731731

732-
#[Broadcast(topics: ['@="book_detail" ~ entity.id', 'books'], template: 'book_detail.stream.html.twig', private: true)]
733-
#[Broadcast(topics: ['@="book_list" ~ entity.id', 'books'], template: 'book_list.stream.html.twig', private: true)]
732+
#[Broadcast(topics: ['@="book_detail" ~ entity.getId()', 'books'], template: 'book_detail.stream.html.twig', private: true)]
733+
#[Broadcast(topics: ['@="book_list" ~ entity.getId()', 'books'], template: 'book_list.stream.html.twig', private: true)]
734734
class Book
735735
{
736736
// ...

0 commit comments

Comments
 (0)