We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
From: https://github.com/stof/StofDoctrineExtensionsBundle
to: https://github.com/KnpLabs/DoctrineBehaviors
Rename trait:
Gedmo\Timestampable\Traits\Timestampable ↓ Knp\DoctrineBehaviors\Model\Timestampable\TimestampableTrait
Gedmo\Timestampable\Traits\Timestampable
Knp\DoctrineBehaviors\Model\Timestampable\TimestampableTrait
Knp\DoctrineBehaviors\Contract\Entity\TimestampableInterface
Replace annotated property with trait
Gedmo\Mapping\Annotation as Gedmo; - /** - * @ORM\Column(type="string", unique=true) - * @Gedmo\Slug(fields={"name"}) - * @var string - */ - private $slug;
remove getSlug()/setSlug()
public function getSlug(): ?string { return $this->slug; } public function setSlug(?string $slug): void { $this->slug = $slug; }
Add sluggable trait: Knp\DoctrineBehaviors\Model\Sluggable\SluggableTrait
Knp\DoctrineBehaviors\Model\Sluggable\SluggableTrait
from:
Gedmo\Slug(fields={"name"})
add
/** * @return string[] */ public function getSluggableFields(): array { return ['name']; }
The text was updated successfully, but these errors were encountered:
See gedmo https://github.com/Atlantic18/DoctrineExtensions/blob/v2.4.x/doc/translatable.md#translatable-entity-example
Sorry, something went wrong.
Updated Rector to commit a6fb826
4182234
rectorphp/rector-src@a6fb826 Bump to phpstan/phpdoc-parser 1.6.2 (#2473)
aac6955
Successfully merging a pull request may close this issue.
From: https://github.com/stof/StofDoctrineExtensionsBundle
to: https://github.com/KnpLabs/DoctrineBehaviors
1. Timestampable ✔️
Rename trait:
Gedmo\Timestampable\Traits\Timestampable
↓
Knp\DoctrineBehaviors\Model\Timestampable\TimestampableTrait
Knp\DoctrineBehaviors\Contract\Entity\TimestampableInterface
2. Sluggable ✔️
Replace annotated property with trait
remove getSlug()/setSlug()
Add sluggable trait:
Knp\DoctrineBehaviors\Model\Sluggable\SluggableTrait
from:
Gedmo\Slug(fields={"name"})
add
The text was updated successfully, but these errors were encountered: