thank you
the truth is : i don't know how to get to your tutorial in the Zf_documentation repo...
sorry...

Date: Wed, 7 May 2014 07:08:43 -0700
From: notifications@github.com
To: ZF2_3_QuickStart_Rewrite@noreply.github.com
CC: haclong99@hotmail.com
Subject: Re: [ZF2_3_QuickStart_Rewrite] Chapter 06 Introducing Zend\Form and Zend\Form\Fieldset (#15)

In 06_forms_and_fieldsets.md:

> +wanted. When we do an update of a row, we don't update the `id` property itself and therefore she isn't needed. On the
> +insert routine we don't need an `id` either so we can simply strip it away.
> +
> +After the `id` field has been removed we check what action is supposed to be called. If the `Album`-Object has an `id`
> +set we create a new `Update`-Object and if not we create a new `Insert`-Object. We set the data for both actions
> +accordingly and after that the data is passed over to the `Sql`-Object for the actual query into the database.
> +
> +At last we check if we receive a valid result and if there has been an `id` generated. If it's the case we call the
> +`setId()`-function of our album and return the object in the end.
> +
> +Let's submit our form again and see what we get.
> +
> +```text
> +Catchable fatal error: Argument 1 passed to Album\Service\AlbumService::saveAlbum()
> +must implement interface Album\Model\AlbumInterface, array given,
> +called in /module/Album/src/Album/Controller/InsertController.php on line 33

@haclong again, sadly though it's impossible to keep two repos up to date that have a different code-base. All your comments are very valid and super helpful, sadly though it's a bit outdated. You may want to check the zf2-documentation repository and comment there ;) So that your time won't be wasted. Thanks a lot though for your efforts and help!


—
Reply to this email directly or view it on GitHub.