public static findOne ( $condition ) : static | ||
return | static | ActiveRecord instance matching the condition, or `null` if nothing matches. |
public static function findOne($condition)
{
return static::findByCondition($condition)->one();
}