Skip to content

Commit

Permalink
Change node model id serializer type: integer => string
Browse files Browse the repository at this point in the history
  • Loading branch information
tadcka committed Jan 29, 2015
1 parent e645772 commit 191205a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Model/Node.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
class Node
{
/**
* @var int
* @var string
*/
private $id;

Expand All @@ -41,7 +41,7 @@ class Node
/**
* Constructor.
*
* @param int $id
* @param string $id
* @param string $text
* @param bool|array|Node[] $children
* @param null|string $icon
Expand All @@ -55,7 +55,7 @@ public function __construct($id, $text, $children, $icon = null)
}

/**
* Get id.
* Get string.
*
* @return int
*/
Expand Down
2 changes: 1 addition & 1 deletion Resources/config/serializer/Model.Node.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<class name="Tadcka\JsTreeBundle\Model\Node">

<property name="id" type="integer" serialized-name="id" expose="true" />
<property name="id" type="string" serialized-name="id" expose="true" />

<property name="text" type="string" serialized-name="text" expose="true" />

Expand Down

0 comments on commit 191205a

Please sign in to comment.