@@ -26,7 +26,7 @@ public function update(array $values)
26
26
{
27
27
// Intercept operations on embedded models and delegate logic
28
28
// to the parent relation instance.
29
- if ($ relation = $ this ->model ->getParent ())
29
+ if ($ relation = $ this ->model ->getParentRelation ())
30
30
{
31
31
$ relation ->performUpdate ($ this ->model , $ values );
32
32
@@ -46,7 +46,7 @@ public function insert(array $values)
46
46
{
47
47
// Intercept operations on embedded models and delegate logic
48
48
// to the parent relation instance.
49
- if ($ relation = $ this ->model ->getParent ())
49
+ if ($ relation = $ this ->model ->getParentRelation ())
50
50
{
51
51
$ relation ->performInsert ($ this ->model , $ values );
52
52
@@ -67,7 +67,7 @@ public function insertGetId(array $values, $sequence = null)
67
67
{
68
68
// Intercept operations on embedded models and delegate logic
69
69
// to the parent relation instance.
70
- if ($ relation = $ this ->model ->getParent ())
70
+ if ($ relation = $ this ->model ->getParentRelation ())
71
71
{
72
72
$ relation ->performInsert ($ this ->model , $ values );
73
73
@@ -86,7 +86,7 @@ public function delete()
86
86
{
87
87
// Intercept operations on embedded models and delegate logic
88
88
// to the parent relation instance.
89
- if ($ relation = $ this ->model ->getParent ())
89
+ if ($ relation = $ this ->model ->getParentRelation ())
90
90
{
91
91
$ relation ->performDelete ($ this ->model );
92
92
@@ -108,7 +108,7 @@ public function increment($column, $amount = 1, array $extra = array())
108
108
{
109
109
// Intercept operations on embedded models and delegate logic
110
110
// to the parent relation instance.
111
- if ($ relation = $ this ->model ->getParent ())
111
+ if ($ relation = $ this ->model ->getParentRelation ())
112
112
{
113
113
$ value = $ this ->model ->{$ column };
114
114
@@ -138,7 +138,7 @@ public function decrement($column, $amount = 1, array $extra = array())
138
138
{
139
139
// Intercept operations on embedded models and delegate logic
140
140
// to the parent relation instance.
141
- if ($ relation = $ this ->model ->getParent ())
141
+ if ($ relation = $ this ->model ->getParentRelation ())
142
142
{
143
143
$ value = $ this ->model ->{$ column };
144
144
0 commit comments