Skip to content

Commit

Permalink
Fixed some bugs found through testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Neuhaus committed Nov 24, 2012
1 parent aa0cd48 commit 58ecf64
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Classes/Famelo/Demo/Admin/Controller/HelperController.php
Expand Up @@ -28,6 +28,8 @@ class HelperController extends \TYPO3\Flow\Mvc\Controller\ActionController {
public function clearDatabaseAction() {
$output = '';
$output .= 'Deleted ' . $this->clearRepository('address') . ' Addresses <br />';
$output .= 'Deleted ' . $this->clearRepository('validation') . ' Valitations <br />';
$output .= 'Deleted ' . $this->clearRepository('configurations') . ' Configurations <br />';
return $output;
}

Expand Down
4 changes: 2 additions & 2 deletions Classes/Famelo/Demo/Admin/Domain/Model/Validation.php
Expand Up @@ -39,7 +39,7 @@ class Validation {
* @var string
* @Flow\Validate(type="String")
*/
protected $string;
protected $string = "";

/**
* @var string
Expand All @@ -51,7 +51,7 @@ class Validation {
* @var string
* @Flow\Validate(type="StringLength", options={ "minimum"=1, "maximum"=100 })
*/
protected $stringlength;
protected $stringlength = "";

/**
* @param string $email
Expand Down
@@ -0,0 +1,19 @@
<?php
namespace Famelo\Demo\Admin\Domain\Repository;

/* *
* This script belongs to the FLOW3 package "AdminDemo". *
* *
* */

use TYPO3\Flow\Annotations as Flow;

/**
* A repository for Inlines
*
* @Flow\Scope("singleton")
*/
class ConfigurationsRepository extends \TYPO3\Flow\Persistence\Repository {

}
?>
@@ -0,0 +1,19 @@
<?php
namespace Famelo\Demo\Admin\Domain\Repository;

/* *
* This script belongs to the FLOW3 package "AdminDemo". *
* *
* */

use TYPO3\Flow\Annotations as Flow;

/**
* A repository for Inlines
*
* @Flow\Scope("singleton")
*/
class ValidationRepository extends \TYPO3\Flow\Persistence\Repository {

}
?>

0 comments on commit 58ecf64

Please sign in to comment.