Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
ManyToMany Class Reference

Annotation ManyToMany. More...

+ Inheritance diagram for ManyToMany:

Public Member Functions

 __construct (string $targetEntity, ?string $inversedBy=null, ?string $mappedBy=null, ?array $cascade=null)
 
- Public Member Functions inherited from BaseAttribute
 __construct ()
 
 asAnnotation ()
 
 getNamespace ()
 
 __toString ()
 
- Public Member Functions inherited from BaseAnnotationTrait
 getProperties ()
 
 getPropertiesAndValues ($props=NULL)
 
 isSameAs ($annot)
 

Data Fields

string $targetEntity
 
string $inversedBy
 
string $mappedBy
 
array $cascade
 

Additional Inherited Members

- Protected Member Functions inherited from BaseAttribute
 getDefaultParameters ()
 

Detailed Description

Annotation ManyToMany.

usages :

  • #[ManyToMany(targetEntity: "classname")]
  • #[ManyToMany(targetEntity: "classname", inversedBy: "memberName")]
  • #[ManyToMany(targetEntity: "classname", inversedBy: "memberName", mappedBy: "memberName")]
  • #[ManyToMany(targetEntity: "classname", inversedBy: "memberName", mappedBy: "memberName", cascade: ["remove"])]
Author
jc
Version
1.0.1

Definition at line 20 of file ManyToMany.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( string  $targetEntity,
?string  $inversedBy = null,
?string  $mappedBy = null,
?array  $cascade = null 
)

Definition at line 27 of file ManyToMany.php.

Field Documentation

◆ $cascade

array $cascade

Definition at line 25 of file ManyToMany.php.

◆ $inversedBy

string $inversedBy

Definition at line 23 of file ManyToMany.php.

◆ $mappedBy

string $mappedBy

Definition at line 24 of file ManyToMany.php.

◆ $targetEntity

string $targetEntity

Definition at line 22 of file ManyToMany.php.


The documentation for this class was generated from the following file: