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

Annotation OneToMany. More...

+ Inheritance diagram for OneToMany:

Public Member Functions

 __construct (string $mappedBy, string $className, ?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 $mappedBy
 
string $className
 
array $cascade
 

Additional Inherited Members

- Protected Member Functions inherited from BaseAttribute
 getDefaultParameters ()
 

Detailed Description

Annotation OneToMany.

usage :

  • #[OneToMany(mappedBy:"memberName",className:"classname")]
  • #[OneToMany(mappedBy:"memberName",className:"classname",cascade:["remove"])]
Author
jc
Version
1.0.1

Definition at line 18 of file OneToMany.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 24 of file OneToMany.php.

Field Documentation

◆ $cascade

array $cascade

Definition at line 22 of file OneToMany.php.

◆ $className

string $className

Definition at line 21 of file OneToMany.php.

◆ $mappedBy

string $mappedBy

Definition at line 20 of file OneToMany.php.


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