Closed peter-gribanov closed 4 years ago
If you made a major release, why didn't you fix such obvious problems?
That's nice.
If you made a major release, why didn't you fix such obvious problems?
Thanks for reporting the bug, but you really don't need to add this kind of attack. If you don't like the work is done here, you are free to create your own bundle.
Maybe i was being rude. Sorry. :bow:
I'm a little upset by the fact that solving the problem breaks BC and i should not expect an early resolution of this problem.
I wish i had noticed this problem before. I did not use your model, but only implemented the interface, but now i'm forced to implement even those methods that i don't need. It seems that i really have to abandon your library in the near future :worried:
but now i'm forced to implement even those methods that i don't need.
sounds like an ISP violation :/ , and you're right, it would be hard to solve IMO
Сontinuation of the epic
I caught the error at this line:
Model class "Acme\DemoBundle\Entity\User" does not correspond to manager type "orm".
where
$actualModelClass
is equile Acme\DemoBundle\Entity\User
$expectedModelClass
is equile Sonata\UserBundle\Entity\BaseUser
It's strange that we expect a concrete class, not an interface, although we have it.
If i extends from Sonata\UserBundle\Entity\BaseUser
, i get error:
Duplicate definition of column 'created_at' on entity 'Acme\DemoBundle\Entity\User' in a field or discriminator column mapping.
If i disable all duplicates, i get this error:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 't0.website' in 'field list'
Now i probably need to create a columns in DB that i not needed :worried: Is there a way to solve this problem without resorting to such major changes?
@peter-gribanov : the bug with not correspond is this pr #980 the check force to use Sonata classes, even if you don't need them (i use the FOSUser classed)
in my local code because this is not merged, i just disable the "checkManagerTypeToModelTypeMapping" check in the SonataUserExtension
I solved the problem for myself by removing the SonataUserBundle.
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Environment
Sonata packages
Symfony packages
PHP version
Subject
I update SonataUserBundle to version 4.x and encountered a problem in UserInterface::setDateOfBirth().
It is stated that the argument is a
\DateTime
, but in fact it isn't and this is not checked. And at the same time we have a normal methods:But i do not understand why
created_at
field can be nullable and whyupdated_at
field can reseted to nullable.Solution for me:
But it is not good way. If you made a major release, why didn't you fix such obvious problems?