Hello Phalcon,
I'm looking for a method to know from a model instance if the model is new or not.
Fo me a new model is:
$car = new Car(); \\this is a new car.
if ($car->save() == true) {
\\this is not a new car, because i saved it
} else {
\\this is already a new car, becasue i dont save it successfully
}
$car = Car::findFirst(1); \\and this is a not new car.
I'm looking for a method or something similar to this:
$car->isNew() : true | false
And $car is new until i dont save it successfully on the database.