@@ -26,7 +26,7 @@ public function update(array $values)
2626 {
2727 // Intercept operations on embedded models and delegate logic
2828 // to the parent relation instance.
29- if ($ relation = $ this ->model ->getParent ())
29+ if ($ relation = $ this ->model ->getParentRelation ())
3030 {
3131 $ relation ->performUpdate ($ this ->model , $ values );
3232
@@ -46,7 +46,7 @@ public function insert(array $values)
4646 {
4747 // Intercept operations on embedded models and delegate logic
4848 // to the parent relation instance.
49- if ($ relation = $ this ->model ->getParent ())
49+ if ($ relation = $ this ->model ->getParentRelation ())
5050 {
5151 $ relation ->performInsert ($ this ->model , $ values );
5252
@@ -67,7 +67,7 @@ public function insertGetId(array $values, $sequence = null)
6767 {
6868 // Intercept operations on embedded models and delegate logic
6969 // to the parent relation instance.
70- if ($ relation = $ this ->model ->getParent ())
70+ if ($ relation = $ this ->model ->getParentRelation ())
7171 {
7272 $ relation ->performInsert ($ this ->model , $ values );
7373
@@ -86,7 +86,7 @@ public function delete()
8686 {
8787 // Intercept operations on embedded models and delegate logic
8888 // to the parent relation instance.
89- if ($ relation = $ this ->model ->getParent ())
89+ if ($ relation = $ this ->model ->getParentRelation ())
9090 {
9191 $ relation ->performDelete ($ this ->model );
9292
@@ -108,7 +108,7 @@ public function increment($column, $amount = 1, array $extra = array())
108108 {
109109 // Intercept operations on embedded models and delegate logic
110110 // to the parent relation instance.
111- if ($ relation = $ this ->model ->getParent ())
111+ if ($ relation = $ this ->model ->getParentRelation ())
112112 {
113113 $ value = $ this ->model ->{$ column };
114114
@@ -138,7 +138,7 @@ public function decrement($column, $amount = 1, array $extra = array())
138138 {
139139 // Intercept operations on embedded models and delegate logic
140140 // to the parent relation instance.
141- if ($ relation = $ this ->model ->getParent ())
141+ if ($ relation = $ this ->model ->getParentRelation ())
142142 {
143143 $ value = $ this ->model ->{$ column };
144144
0 commit comments