Skip to content

Commit

Permalink
IBX-5280 add constraint LocationIsContainer to parentLocation in Cont…
Browse files Browse the repository at this point in the history
…entCreateData.php
  • Loading branch information
papcio122 committed Mar 16, 2023
1 parent b154f6d commit f7fed41
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib/Form/Data/Content/Draft/ContentCreateData.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

namespace Ibexa\AdminUi\Form\Data\Content\Draft;

use Ibexa\AdminUi\Validator\Constraints as AdminUiAssert;
use Ibexa\Contracts\Core\Repository\Values\Content\Language;
use Ibexa\Contracts\Core\Repository\Values\Content\Location;
use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType;
Expand All @@ -20,7 +21,11 @@ class ContentCreateData
/** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType|null */
protected $contentType;

/** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location|null */
/**
* @var \Ibexa\Contracts\Core\Repository\Values\Content\Location|null
*
* @AdminUiAssert\LocationIsContainer()
*/
protected $parentLocation;

/** @var \Ibexa\Contracts\Core\Repository\Values\Content\Language|null */
Expand Down

0 comments on commit f7fed41

Please sign in to comment.