Version 5.1 - All the GraphQL #32
@ -120,8 +120,6 @@ class AnimeCollection extends Collection {
|
|||||||
public function add($data)
|
public function add($data)
|
||||||
{
|
{
|
||||||
$anime = (object)$this->anime_model->getAnimeById($data['id']);
|
$anime = (object)$this->anime_model->getAnimeById($data['id']);
|
||||||
$util = $this->container->get('util');
|
|
||||||
|
|
||||||
$this->db->set([
|
$this->db->set([
|
||||||
'hummingbird_id' => $data['id'],
|
'hummingbird_id' => $data['id'],
|
||||||
'slug' => $anime->slug,
|
'slug' => $anime->slug,
|
||||||
@ -285,21 +283,5 @@ class AnimeCollection extends Collection {
|
|||||||
'links' => $links
|
'links' => $links
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Update genre information for the entire collection
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
private function update_genres()
|
|
||||||
{
|
|
||||||
// Get the anime collection
|
|
||||||
$collection = $this->_get_collection();
|
|
||||||
foreach ($collection as $anime)
|
|
||||||
{
|
|
||||||
// Get api information
|
|
||||||
$this->update_genre($anime['hummingbird_id']);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// End of AnimeCollectionModel.php
|
// End of AnimeCollectionModel.php
|
@ -132,7 +132,6 @@ class DispatcherTest extends AnimeClient_TestCase {
|
|||||||
|
|
||||||
$request = $this->container->get('request');
|
$request = $this->container->get('request');
|
||||||
$aura_router = $this->container->get('aura-router');
|
$aura_router = $this->container->get('aura-router');
|
||||||
$matcher = $aura_router->getMatcher();
|
|
||||||
|
|
||||||
|
|
||||||
// Check route setup
|
// Check route setup
|
||||||
|
Loading…
Reference in New Issue
Block a user