|
@@ 1858-1866 (lines=9) @@
|
| 1855 |
|
* @param bool $classOnly |
| 1856 |
|
* @return array|null |
| 1857 |
|
*/ |
| 1858 |
|
public function belongs_to($component = null, $classOnly = true) { |
| 1859 |
|
if($component) { |
| 1860 |
|
Deprecation::notice('4.0', 'Please use belongsToComponent() instead'); |
| 1861 |
|
return $this->belongsToComponent($component, $classOnly); |
| 1862 |
|
} |
| 1863 |
|
|
| 1864 |
|
Deprecation::notice('4.0', 'Please use belongsTo() instead'); |
| 1865 |
|
return $this->belongsTo(null, $classOnly); |
| 1866 |
|
} |
| 1867 |
|
|
| 1868 |
|
/** |
| 1869 |
|
* Returns the class of a remote belongs_to relationship. If no component is specified a map of all components and |
|
@@ 1956-1964 (lines=9) @@
|
| 1953 |
|
* @param bool $classOnly |
| 1954 |
|
* @return array|null |
| 1955 |
|
*/ |
| 1956 |
|
public function has_many($component = null, $classOnly = true) { |
| 1957 |
|
if($component) { |
| 1958 |
|
Deprecation::notice('4.0', 'Please use hasManyComponent() instead'); |
| 1959 |
|
return $this->hasManyComponent($component, $classOnly); |
| 1960 |
|
} |
| 1961 |
|
|
| 1962 |
|
Deprecation::notice('4.0', 'Please use hasMany() instead'); |
| 1963 |
|
return $this->hasMany(null, $classOnly); |
| 1964 |
|
} |
| 1965 |
|
|
| 1966 |
|
/** |
| 1967 |
|
* Gets the class of a one-to-many relationship. If no $component is specified then an array of all the one-to-many |