Skip to content

Commit

Permalink
Add AssociationMapping type
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet authored and ondrejmirtes committed Aug 8, 2022
1 parent 3ef6399 commit bb9dbf7
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions stubs/ORM/Mapping/ClassMetadataInfo.stub
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,41 @@ use ReflectionClass;
* declaredField?: string,
* options?: array<string, mixed>
* }
* @psalm-type AssociationMapping = array{
* cache?: array,
* cascade?: array<string>,
* declared?: class-string,
* fetch?: mixed,
* fieldName: string,
* id?: bool,
* inherited?: class-string,
* indexBy?: string,
* inversedBy?: string|null,
* isCascadeRemove?: bool,
* isCascadePersist?: bool,
* isCascadeRefresh?: bool,
* isCascadeMerge?: bool,
* isCascadeDetach?: bool,
* isOnDeleteCascade?: bool,
* isOwningSide?: bool,
* joinColumns?: array,
* joinColumnFieldNames?: array,
* joinTable?: array,
* joinTableColumns?: list<mixed>,
* mappedBy?: string|null,
* orderBy?: array,
* originalClass?: class-string,
* originalField?: string,
* orphanRemoval?: bool,
* relationToSourceKeyColumns?: array,
* relationToTargetKeyColumns?: array,
* sourceEntity?: class-string,
* sourceToTargetKeyColumns?: array,
* targetEntity: class-string,
* targetToSourceKeyColumns: array,
* type: int,
* unique?: bool,
* }
*/
class ClassMetadataInfo implements ClassMetadata
{
Expand Down

0 comments on commit bb9dbf7

Please sign in to comment.