sudo apt install -y \
php8.3 \
php8.3-cli \
php8.3-common \
php8.3-mysql \
php8.3-xml \
- Create a grained PAT in github. Notice that grained PAT, can not see repos where you are not the owner, i.e. colloborator.
- Add Rules for your grained PAT. Permissions: Commit statuses, Contents, Pull requests and Metadata as Read to be able to Clone repositories. And the same Permissions need to the Read and Write to be able to push changes.
- git config --global user.name "Your Name"
- git config --global user.email "[email protected]"
- git config --list
- git clone https://(USERNAME):(TOKEN)@github.com/OWNER/REPO.git
There is a difference between ~ and ^ in Composer, though it might not be immediately obvious in some cases. Let me clarify:
~(tilde): Allows updates for the last digit specified.^(caret): Allows updates for all minor versions within the same major version.
~7.3:
1. [Doctrine\Common\Persistence\Mapping\MappingException] Class 'Your\SyliusPlugin\Entity\YourEntity' does not exist
When your plugin is AbstractResourceBundle and all your entities should be and actually placed at Model directory,
you have that exception (notice ...\Entity\... at exception rather than ..\Model\...)
for your Your\SyliusPlugin\Model\YourEntity.php that is weird.
This happens when you accidentally have your mapping file at src/Resources/config/doctrine/YourEntity.orm.xml (without ../model/.. part) rather than src/Resources/config/doctrine/model/YourEntity.orm.xml.
This issue may happen when you convert some of your application code (which use Entity directory) to plugin (which use Model directory).