Do not allow duplicate lifecycle callbacks to be registered

See: doctrine/mongodb-odm@59a67f3f29020f6dfc82b7446c6140b4010d8681