File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ public function initialize(array $config)
57
57
$ this ->_table ->table ($ this ->_config ['table ' ]);
58
58
}
59
59
if ($ this ->_config ['discriminator ' ] !== null ) {
60
- $ this ->discriminator ($ this ->_config ['discriminator ' ]);
60
+ $ this ->setDiscriminator ($ this ->_config ['discriminator ' ]);
61
61
}
62
62
}
63
63
@@ -115,7 +115,7 @@ public function acceptedDiscriminators()
115
115
if (!$ this ->_acceptedDiscriminators ) {
116
116
$ accepted = $ this ->_config ['acceptedDiscriminators ' ];
117
117
if (!$ accepted ) {
118
- $ accepted = $ this ->discriminator ();
118
+ $ accepted = $ this ->getDiscriminator ();
119
119
}
120
120
121
121
$ this ->_acceptedDiscriminators = (array )$ accepted ;
@@ -176,7 +176,7 @@ public function beforeSave(Event $event, EntityInterface $entity)
176
176
{
177
177
$ field = $ this ->_config ['discriminatorField ' ];
178
178
if ($ entity ->isNew () && !$ entity ->has ($ field )) {
179
- $ discriminator = $ this ->discriminator ();
179
+ $ discriminator = $ this ->getDiscriminator ();
180
180
$ entity ->set ($ field , $ discriminator );
181
181
}
182
182
}
You can’t perform that action at this time.
0 commit comments