Pheasant\Mapper\AbstractMapper::save PHP Method

save() public method

public save ( $object )
    public function save($object)
    {
        if (!$object->isSaved()) {
            $this->insert($object);
        } elseif ($changes = $object->changes()) {
            $this->update($object, $changes);
        }
        return $this;
    }