Git Product home page Git Product logo

Comments (5)

nico-dangerous avatar nico-dangerous commented on September 24, 2024 1

Hi,
In my case, notifications are not strted at all. I saw in symfony profiler that the SQL query has no order.



SELECT 
  n0_.id AS id_0, 
  n0_.date AS date_1, 
  n0_.subject AS subject_2, 
  n0_.message AS message_3, 
  n0_.link AS link_4, 
  n1_.seen AS seen_5 
FROM 
  notification n0_ 
  INNER JOIN notifiable_notification n1_ ON n0_.id = n1_.notification_id 
  INNER JOIN notifiable n2_ ON n1_.notifiable_entity_id = n2_.id 
WHERE 
  n2_.identifier = ? 
  AND n2_.class = ? 
  AND n1_.seen = ?

This is a real problem because because I have no access to the query.

from notification-bundle.

maximilienGilet avatar maximilienGilet commented on September 24, 2024

Yes, this is an interesting feature !

from notification-bundle.

maximilienGilet avatar maximilienGilet commented on September 24, 2024

Notifications sorted DESC by default ! (configurable)

See commit 4347fec

from notification-bundle.

aquibbaig avatar aquibbaig commented on September 24, 2024

Does that work in mgilet_notification_render() cause this doesn't seem to work for me right now

from notification-bundle.

aquibbaig avatar aquibbaig commented on September 24, 2024

Fix:

{{ mgilet_notification_render(app.user, 
{ 'template': './notification/notification_list.html.twig', 'order': 'DESC'}) }}

Here notification_list.html.twig is my custom template

from notification-bundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.