You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Gokujo Hello, we have updated the installation section. In the new version of cycle/annotated, this configuration looks slightly different. Here is the correct example:
useCycle\Schema;
useCycle\Annotated;
useCycle\Annotated\Locator\TokenizerEmbeddingLocator;
useCycle\Annotated\Locator\TokenizerEntityLocator;
$embeddingLocator = newTokenizerEmbeddingLocator($classLocator);
$entityLocator = newTokenizerEntityLocator($classLocator);
$schema = (newSchema\Compiler())->compile(newSchema\Registry($dbal), [
newSchema\Generator\ResetTables(), // Reconfigure table schemas (deletes columns if necessary)newAnnotated\Embeddings($embeddingLocator), // Recognize embeddable entitiesnewAnnotated\Entities($entityLocator), // Identify attributed entitiesnewAnnotated\TableInheritance(), // Setup Single Table or Joined Table InheritancenewAnnotated\MergeColumns(), // Integrate table #[Column] attributesnewSchema\Generator\GenerateRelations(), // Define entity relationshipsnewSchema\Generator\GenerateModifiers(), // Apply schema modificationsnewSchema\Generator\ValidateEntities(), // Ensure entity schemas adhere to conventionsnewSchema\Generator\RenderTables(), // Create table schemasnewSchema\Generator\RenderRelations(), // Establish keys and indexes for relationshipsnewSchema\Generator\RenderModifiers(), // Implement schema modificationsnewSchema\Generator\ForeignKeys(), // Define foreign key constraintsnewAnnotated\MergeIndexes(), // Merge table index attributesnewSchema\Generator\SyncTables(), // Align table changes with the databasenewSchema\Generator\GenerateTypecast(), // Typecast non-string columns
]);
No duplicates 馃ゲ.
What happened?
I had some free time and got back to my project. And I am following this documentation: https://cycle-orm.dev/docs/annotated-prerequisites/current/en
Problem occurs in this linies
Problem description:
Expected parameter of type 'Cycle\Annotated\Locator\EmbeddingLocatorInterface', 'Spiral\Tokenizer\ClassLocator' provided
Version
The text was updated successfully, but these errors were encountered: