public function save(EntityContract $entity)
    {
        $result = new Result();

        $saving = $entity->save();

        foreach ($this->getAttributes() as $attribute) {
            $result->addErrors($attribute->save($entity));
        }

        return $result;
    }
public function save(EntityContract $entity)
    {
        $result = new Result();

        $saving = $entity->save();

        foreach ($this->getAttributes() as $attribute) {
            $result->addErrors($attribute->save($entity));
        }

        return $result;
    }
public function save ( EntityContract $ entity ) { $ result = new Result ( ) ; $ saving = $ entity -> save ( ) ; foreach ( $ this -> getAttributes ( ) as $ attribute ) { $ result -> addErrors ( $ attribute -> save ( $ entity ) ) ; } return $ result ; }
Save the entity.

@param \Railken\Lem\Contracts\EntityContract $entity

@return Result
Save the entity .