web-push icon indicating copy to clipboard operation
web-push copied to clipboard

Example doctrine subscription

Open john-dufrene-dev opened this issue 4 years ago • 7 comments

Hi,

Thanks for tout great job, I arrive to implements notifications system like in your demo exemple.

I have some difficult with doctrine exemple implement in User entity,

Do you think It's possible to have a complete exemple with client sise javascript and doctrine system ?

Thanks in advance.

john-dufrene-dev avatar May 30 '21 09:05 john-dufrene-dev

Hi,

Yes, some examples will be added in the documentation. In the meantime, you can have a look at the demo app.

Spomky avatar Jun 14 '21 06:06 Spomky

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 13 '21 07:08 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 12 '21 21:10 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 15 '21 05:12 stale[bot]

Hi,

you said there will be some examples within the docs and there is one but it seems to be a bit messed up. In the User enity suddenly appears a $this->notifications, Notification[], $child. Then there is suddenly another Subscription entity.

Could you please provide a working example?

tuc0w avatar Apr 21 '23 13:04 tuc0w

Hello @tuc0w. I am also trying to figure this out. The demo app does not contain any doctrine entities.

When using version 3.* I assume that writing your own entity class against SubscriptionInterface (and not extending with Subscription) seems to be the way to go.

potibm avatar Dec 04 '23 22:12 potibm