回答編集履歴
1
all()が抜けていたので追記
    
        answer	
    CHANGED
    
    | 
         @@ -12,7 +12,8 @@ 
     | 
|
| 
       12 
12 
     | 
    
         
             
            $posts = $postsTable->find()
         
     | 
| 
       13 
13 
     | 
    
         
             
                ->where([
         
     | 
| 
       14 
14 
     | 
    
         
             
                    $postsTable->aliasField('users_id') => $userId,
         
     | 
| 
       15 
     | 
    
         
            -
                ]) 
     | 
| 
      
 15 
     | 
    
         
            +
                ])
         
     | 
| 
      
 16 
     | 
    
         
            +
                ->all();
         
     | 
| 
       16 
17 
     | 
    
         | 
| 
       17 
18 
     | 
    
         
             
            // 3. テンプレートへ値を渡す
         
     | 
| 
       18 
19 
     | 
    
         
             
            $this->set(compact('posts'));
         
     |