Fixed typo.
authorhiroto
Wed, 04 Sep 2013 11:45:37 +0900
changeset 34 ca41368a9be2
parent 33 02fce4d107db
child 35 e270ee970913
Fixed typo.
autotweet-php/src/Org/W3/AutotweetBundle/Controller/DefaultController.php
autotweet-php/src/Org/W3/AutotweetBundle/Entity/Talk.php
autotweet-php/src/Org/W3/AutotweetBundle/Entity/TalkRepository.php
--- a/autotweet-php/src/Org/W3/AutotweetBundle/Controller/DefaultController.php	Wed Sep 04 11:39:17 2013 +0900
+++ b/autotweet-php/src/Org/W3/AutotweetBundle/Controller/DefaultController.php	Wed Sep 04 11:45:37 2013 +0900
@@ -80,14 +80,14 @@
             $key=$this->get('request')->request->get('accesskey');
             $msg=$this->get('request')->request->get('note');
             $hashtag=$this->get('request')->request->get('hashtag');
-            $auther=$this->get('request')->request->get('auther');
+            $author=$this->get('request')->request->get('author');
             $title=$this->get('request')->request->get('title');
             $talk = $this->getDoctrine()->getRepository('OrgW3AutotweetBundle:Talk')->findOneBy(array('accesskey'=>$key));
 	    echo 'Talk:' . count($talk);
 	    if(0!=count($talk)){
 	    $post = $this->getDoctrine()->getRepository('OrgW3AutotweetBundle:Post')->findBy(array('talk' =>$talk, 'content'=>$msg));
-            if(null!=$auther){
-                $editparam = $this->getDoctrine()->getRepository('OrgW3AutotweetBundle:Talk')->updateAuther($talk, $auther);
+            if(null!=$author){
+                $editparam = $this->getDoctrine()->getRepository('OrgW3AutotweetBundle:Talk')->updateAuthor($talk, $author);
             }
             if(null!=$title){
                 $editparam = $this->getDoctrine()->getRepository('OrgW3AutotweetBundle:Talk')->updateTitle($talk, $title);
--- a/autotweet-php/src/Org/W3/AutotweetBundle/Entity/Talk.php	Wed Sep 04 11:39:17 2013 +0900
+++ b/autotweet-php/src/Org/W3/AutotweetBundle/Entity/Talk.php	Wed Sep 04 11:45:37 2013 +0900
@@ -44,9 +44,9 @@
     /**
      * @var string
      *
-     * @ORM\Column(name="auther", type="string", length=255, nullable=true)
+     * @ORM\Column(name="author", type="string", length=255, nullable=true)
      */
-    private $auther;
+    private $author;
     
     /**
      * @var string
@@ -234,25 +234,25 @@
     }
 
     /**
-     * Set auther
+     * Set author
      *
-     * @param string $auther
+     * @param string $author
      * @return Talk
      */
-    public function setAuther($auther)
+    public function setAuther($author)
     {
-        $this->auther = $auther;
+        $this->author = $author;
     
         return $this;
     }
 
     /**
-     * Get auther
+     * Get author
      *
      * @return string 
      */
-    public function getAuther()
+    public function getAuthor()
     {
-        return $this->auther;
+        return $this->author;
     }
 }
\ No newline at end of file
--- a/autotweet-php/src/Org/W3/AutotweetBundle/Entity/TalkRepository.php	Wed Sep 04 11:39:17 2013 +0900
+++ b/autotweet-php/src/Org/W3/AutotweetBundle/Entity/TalkRepository.php	Wed Sep 04 11:45:37 2013 +0900
@@ -34,13 +34,13 @@
             return $post;
     }
     
-                   public function updateAuther($talk,$auther)
+                   public function updateAuthor($talk,$author)
     {
            $em_default = $this->getEntityManager('default'); 
 
         
             $post= $talk;
-            $post->setAuther($auther);
+            $post->setAuthor($author);
             $em_default->flush();    
             return $post;
     }