ezsystems/ezp-next — comment on commit ca4186b69659fd79b2c0456d873f8903ebed211a
File: ezp/PublicAPI/Interfaces/ContentService.php line 205
By bdunogier:

All statements are wrong: you can only publish a version with draft status.
Le 27 févr. 2012 14:42, "Manuel Pichler" <
reply@reply.github.com>
a écrit :

> The doc comment for the BadStateException is misleading. Does it mean that
> I can only create a draft from a published version or does it mean that I
> can create a draft from every version that is not in draft state itself,
> which would mean STATUS_PUBLISHED and STATUS_ARCHIVED?
>
> ---
> Reply to this email directly or view it on GitHub:
>
> https://github.com/ezsystems/ezp-next/commit/ca4186b69659fd79b2c0456d873f8903ebed211a#commitcomment-1014906
>