Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phalcon1: Fixed getting fields #2010

Merged
merged 1 commit into from
Jun 6, 2015
Merged

Phalcon1: Fixed getting fields #2010

merged 1 commit into from
Jun 6, 2015

Conversation

sergeyklay
Copy link
Contributor

In some cases Phalcon's model message has more than one field.
For example:

    public function validation()
    {
        $this->validate(new Uniqueness(
            [
                'field' => ['phone', 'email'],
                'message' => 'User already exists!'
            ]
        ));

        if ($this->validationHasFailed() == true) {
            return false;
        }

        return true;
    }

In this case $message->getField() returns:

Array
(
    [0] => phone
    [1] => email
)

@sergeyklay sergeyklay changed the title Fixed getting fields Phalcon1: Fixed getting fields Jun 3, 2015
@Naktibalda
Copy link
Member

Merge the latest changes from 2.0 and the build will pass.

@sergeyklay
Copy link
Contributor Author

@Naktibalda Done

DavertMik added a commit that referenced this pull request Jun 6, 2015
@DavertMik DavertMik merged commit 839f571 into Codeception:2.0 Jun 6, 2015
@sergeyklay sergeyklay deleted the update_phalcon branch June 6, 2015 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants