I've been trying to figure out what i've been doing wrong, but I guess that string placeholders are just broken.
https://docs.phalcon.io/pt/latest/reference/models.html#binding-parameters
This doesn't seem to work for me:
$user = \user\User::findFirst(['username = :username', ['username' => 'testuser']]);
I get the following error:
Syntax error, unexpected token COLON, near to 'username', when parsing: SELECT [user\User].* FROM [user\User] WHERE username = :username (64)
Numberic place holders do seem to work for me.
$user = \user\User::findFirst(['username = ?1', [1 => 'testuser']]);
Can anyone confirm?