@@ -1,7 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Intraxia\Jaxion\Model; |
| 3 | 3 | |
| 4 | -use Intraxia\Jaxion\Utility\Str; |
|
| 5 | 4 | use stdClass; |
| 6 | 5 | use WP_Post; |
| 7 | 6 | |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | |
| 4 | 4 | use Intraxia\Jaxion\Axolotl\Relationship\Root as Relationship; |
| 5 | 5 | use Intraxia\Jaxion\Axolotl\Repository\AbstractRepository; |
| 6 | -use Intraxia\Jaxion\Axolotl\Repository\CustomTable as CustomTableRepository; |
|
| 7 | 6 | use Intraxia\Jaxion\Axolotl\Repository\WordPressPost as WordPressPostRepository; |
| 8 | 7 | use Intraxia\Jaxion\Axolotl\Repository\WordPressTerm as WordPressTermRepository; |
| 9 | 8 | use Intraxia\Jaxion\Contract\Axolotl\EntityManager as EntityManagerContract; |
@@ -825,7 +825,7 @@ |
||
| 825 | 825 | * @param string $type |
| 826 | 826 | * @param string $local_key |
| 827 | 827 | * |
| 828 | - * @return HasMany |
|
| 828 | + * @return BelongsToOne |
|
| 829 | 829 | */ |
| 830 | 830 | protected function belongs_to_one( $class, $type, $local_key = '' ) { |
| 831 | 831 | return new BelongsToOne( $this, $class, $type, $local_key ); |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | /** |
| 91 | 91 | * Gets the ID value for the target model to search by. |
| 92 | 92 | * |
| 93 | - * @return int|false |
|
| 93 | + * @return integer |
|
| 94 | 94 | * |
| 95 | 95 | * @throws LogicException |
| 96 | 96 | */ |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | |
| 4 | 4 | use Intraxia\Jaxion\Axolotl\EntityManager; |
| 5 | 5 | use Intraxia\Jaxion\Axolotl\Model; |
| 6 | -use Intraxia\Jaxion\Contract\Axolotl\UsesWordPressPost; |
|
| 7 | 6 | use LogicException; |
| 8 | 7 | |
| 9 | 8 | /** |
@@ -159,7 +159,7 @@ |
||
| 159 | 159 | /** |
| 160 | 160 | * Fills the provided Model with attributes from its custom table. |
| 161 | 161 | * |
| 162 | - * @param Model|UsesCustomTable $model |
|
| 162 | + * @param Model $model |
|
| 163 | 163 | */ |
| 164 | 164 | protected function fill_table_attrs_from_table( Model $model ) { |
| 165 | 165 | $sql[] = "SELECT * FROM {$this->make_table_name( $model )}"; |
@@ -239,7 +239,7 @@ |
||
| 239 | 239 | * |
| 240 | 240 | * @param Model $model |
| 241 | 241 | * |
| 242 | - * @return int|WP_Error |
|
| 242 | + * @return integer |
|
| 243 | 243 | */ |
| 244 | 244 | abstract protected function save_wp_object( Model $model ); |
| 245 | 245 | |