Skip to content

Commit cc8e9bf

Browse files
committed
Fix validator call
1 parent 6251162 commit cc8e9bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Model/Behavior/UploadBehavior.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function initialize(array $config)
5858
*/
5959
public function beforeMarshal(Event $event, ArrayObject $data, ArrayObject $options)
6060
{
61-
$validator = $this->_table->validator();
61+
$validator = $this->_table->getValidator();
6262
$dataArray = $data->getArrayCopy();
6363
foreach (array_keys($this->getConfig(null, [])) as $field) {
6464
if (!$validator->isEmptyAllowed($field, false)) {

0 commit comments

Comments
 (0)