Skip to content

Commit

Permalink
Adding __toString() methods to the Language, Ctagories Entities
Browse files Browse the repository at this point in the history
  • Loading branch information
wingman007 committed Aug 30, 2013
1 parent a831cb3 commit f2e7edd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
5 changes: 5 additions & 0 deletions module/CsnCms/src/CsnCms/Entity/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ class Category
public function __construct() {
$this->articles = new ArrayCollection();
}

public function __toString()
{
return $this->ctgrName;
}

/**
* Set ctgrName
Expand Down
8 changes: 6 additions & 2 deletions module/CsnCms/src/CsnCms/Entity/Language.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ class Language
*/
private $lngId;


public function __toString()
{
return $this->lngName;
}

/**
* Set lngName
*
Expand All @@ -65,7 +69,7 @@ public function setLngName($lngName)

return $this;
}

/**
* Get lngName
*
Expand Down
4 changes: 4 additions & 0 deletions module/CsnCms/src/CsnCms/Entity/Resource.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ class Resource
*/
private $rsId;

public function __toString()
{
return $this->rsName;
}

/**
* Set rsName
Expand Down

0 comments on commit f2e7edd

Please sign in to comment.